Through ndigits past the decimal point. This gives a return value similar to that from fcvt , except that trailing zeros are suppressed, and ndigits can be negative. 4,5,8,9 Same as modes 2 and 3, but using left to right digit generation. Upon return, the buffer specified by buf and bufsz contains the converted string. Trailing zeros are suppressed.
Sufficient space is allocated to the return value to hold the suppressed trailing zeros.
The size of the buffer provided to hold the result. The double-precision floating point number to be converted. On return, the result is written to the buffer pointed to by buf of size bufsz . References Gay's implementation is inspired by these two papers. The Mozilla Organization.