asciiDtostr

Converts a gdouble to a string, using the '.' as decimal point.

This function generates enough precision that converting the string back using funcGLib.ascii_strtod gives the same machine-number (on machines with IEEE compatible 64bit doubles). It is guaranteed that the size of the resulting string will never be larger than glib.types.ASCII_DTOSTR_BUF_SIZE bytes, including the terminating nul character, which is always added.

void
asciiDtostr
(
ref char[] buffer
,
double d
)

Parameters

buffer char[]

a buffer to place the resulting string in

d double

the value to convert