5 lines
141 B
Mojo
5 lines
141 B
Mojo
# probe: does atof() read hexadecimal text such as "0x10"? (no: it raises)
|
|
def main() raises:
|
|
print(atof("2.5"))
|
|
print(atof("0x10"))
|