float atof(string str)
Converts a string to a floating point value.
-
This function ignores whitespace around the number.
-
Returns
0.0
if the string does not contain a number. -
The string can contain exponential notation (for example
"1.25e+5"
).
See also | |
conversion | |
string |
|