Keil Logo

Data Conversion Routines

Routine Attributes Description
abs reentrant Generates the absolute value of an integer type.
atof   Converts a string to a float.
atoi   Converts a string to an int.
atol   Converts a string to a long.
labs reentrant Generates the absolute value of a long type.
strtod   Converts a string to a float.
strtol   Converts a string to a long.
strtoul   Converts a string to an unsigned long.

The data conversion routines convert strings of ASCII characters to numbers. All of these routines are implemented as functions and most are prototyped in stdlib.h. The abs and labs functions are prototyped in math.h.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.