float strtof (const char* str, char** endptr);
float. If endptr is not a null pointer, the function also sets the value of endptr to point to the first character after the number.
"C"locale is formed by an optional sign character (
-), followed by one of:
.), optionally followed by an exponent part (an
Echaracter followed by an optional sign and a sequence of digits).
0Xprefix, then a sequence of hexadecimal digits (as in isxdigit) optionally containing a period which separates the whole and fractional number parts. Optionally followed by a power of 2 exponent (a
Pcharacter followed by an optional sign and a sequence of hexadecimal digits).
NANsequence (ignoring case), where sequence is a sequence of characters, where each character is either an alphanumeric character (as in isalnum) or the underscore character (
char*, whose value is set by the function to the next character in str after the numerical value.
One martian year takes 1.88 Earth years.