This is an old revision of the document!
fixed atof(str s)
Returns s parsed as a fixed-point number. If s cannot be parsed as a fixed-point number, returns 0.
If s is too big or too small to fit into a fixed-point number, returns INT_MAX with the sign of the input.
Supports Number prefixes.
"0.12345678901234567890thisisnotanumberanymore!@#$^#$^$*%^*$" will parse successfully.
atof("123") -> 123.0
atof("123.456") -> 123.456
atoi("0") -> 0
atoi("999999999999") -> 32767.99999 // Too big
atoi("-99999999999") -> -32767.99999 // Too small
atoi("not a number") -> 0 // Error
atoi("0xff.8") -> 255.5 // Hexadecimal prefix