asciiFormatd

fnvoid asciiFormatd(ref char[] buffer, string format, double d)

Converts a gdouble to a string, using the '.' as decimal point. To format the number you pass in a printf()-style format string. Allowed conversion specifiers are 'e', 'E', 'f', 'F', 'g' and 'G'.

The format must just be a single format specifier starting with `%`, expecting a gdouble argument.

The returned buffer is guaranteed to be nul-terminated.

If you just want to want to serialize the value into a string, use funcGLib.ascii_dtostr.

Parameters

buffera buffer to place the resulting string in
formatthe printf()-style format to use for the code to use for converting
dthe value to convert