Converts a double value to a string of significant digits, and places them in a specified location.
#include <stdlib.h> char *gcvt (double value, int digits, char *buffer);
value
digits
buffer
There is no provision for overflow.
gcvt tries to produce significant digits in decimal format. If this is not possible, it produces them in exponential format. Trailing zeros may be suppressed in the conversion.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |