Converts a double value to a null-terminated string, indicating the sign and decimal point location.
#include <stdlib.h> char *fcvt (double value, int count, int *dec, int *sign);
value
count
dec
sign
0 | Positive |
Not 0 | Negative |
Only digits are stored in the string. Obtain the position of the decimal point and the sign of value from dec and sign after the call.
fcvt uses a single statically allocated buffer for the conversion. Each call destroys the results of the previous call.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h (or) intime/rtinclude/math.h |
stdlib.h (or) math.h |
clib.lib |