English
Language : 

CC78K4 Datasheet, PDF (208/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
5-12 atof
strtod
Utility Functions
FUNCTION
atof converts a decimal integer character string to double.
strtod converts a character string to double.
HEADER
stdlib.h
FUNCTION PROTOTYPE
double atof const char *nptr) ;
double strtod (const char *nptr, char **endptr) ;
Function
atof
strtod
Arguments
nptr ... Character string to be
converted
endptr ... Pointer to store a
pointer to an unidentifiable
area (strtod only)
nptr ... Character string to be
converted
endptr ... Pointer to store a
pointer to an unidentifiable
area
Return value
• Normal ... Converted value
• When positive overflow
occurs ... HUGE_VAL (with
the sign of the overflowed
value)
When negative overflow
occurs ... 0
Illegal character string ... 0
• Normal ... Converted value
• When positive overflow
occurs ... HUGE_VAL (with
the sign of the overflowed
value)
When negative overflow
occurs ... 0
Illegal character string ... 0
208
User’s Manual U15556EJ1V0UM