Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language string and integer decimal conversion function and header file.
C language string and integer decimal conversion function and header file.
String to number (stdlib.h header file):

Atof (converting strings to floating-point numbers)

Atoi (converting a string into an integer)

Atol (converting a string into an integer)

Strtod (Converts a string to a floating-point number)

Strtol (Converts a string to an integer)

Strtoul (Converts a string to an unsigned long integer)

Number to string (stdio.h header file):

Sprintf (format output, which can convert any type of variable into a string)