![]() |
|
| << Previous | Next >> | |
| | |
int ftoa( float f, char * buf );
Description
- Converts a float number to a character string.
- The character string only displays the mantissa up to 9 digits, no decimal points, and a minus sign if
fis negative. The function returns the exponent (of 10) that should be used to compensate for the string:ftoa(1.0,buf)yieldsbuf="100000000"and returns-8.Parameters
- f
- Float number to convert.
- buf
- Converted string. The string is no longer than 10 characters long.
Return value
- The exponent of the number.
Library
- STDIO.LIB
See also
- utoa, itoa
| Dynamic C Functions | << Previous | Next >> | rabbit.com |