|
CC78K0S Datasheet, PDF (225/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
5-12 atof
strtod
Utility Functions
FUNCTION
The string function atof converts the contents of a decimal integer string to a double value.
The string function strtod converts the contents of a string to a double value.
HEADER
stdlib.h
FUNCTION PROTOTYPE
double atof(const char *nptr);
double strtod(const char *nptr, char **endptr);
Function
atof
strtod
Arguments
nptr ... String to be converted
nptr ... String to be converted
endptr ⦠Pointer storing
pointer to unrecognizable
block
Return Value
⢠Converted value if
converted properly
⢠HUGE_VAL (with sign of
overflowed value) if positive
overflow occurs
⢠0 if negative overflow
occurs
⢠0 if the string is invalid
⢠Converted value if
converted properly
⢠HUGE_VAL (with sign of
overflowed value) if positive
overflow occurs
⢠0 if negative overflow
occurs
⢠0 if the string is invalid
Userâs Manual U14872EJ1V0UM
225
|
▷ |