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
(
string buffer
,
int bufLen
,
double d
)

Parameters

buffer string

A buffer to place the resulting string in

bufLen int

The length of the buffer.

d double

The gdouble to convert

Return Value

Type: string

The pointer to the buffer with the converted string.

Meta