Converts a gdouble to a string, using the '.' as
decimal point.
This function generates enough precision that converting
the string back using GLib.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.ASCII_DTOSTR_BUF_SIZE bytes, including the terminating
nul character, which is always added.
Parameters
buffer: string
a buffer to place the resulting string in
buf_len: number
the length of the buffer
d: number
the value to convert
Returns string
the pointer to the buffer with the converted string
Converts a
gdoubleto a string, using the '.' as decimal point.This function generates enough precision that converting the string back using GLib.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.ASCII_DTOSTR_BUF_SIZE bytes, including the terminating nul character, which is always added.