Str.asciiDtostr

Converts a gdouble to a string, using the '.' as decimal point. This functions generates enough precision that converting the string back using g_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 G_ASCII_DTOSTR_BUF_SIZE bytes.

class Str
static
string
asciiDtostr
(
char[] buffer
,
double d
)

Parameters

buffer char[]

A buffer to place the resulting string in

d double

The gdouble to convert

Return Value

Type: string

The pointer to the buffer with the converted string.

Meta