Str.asciiFormatd

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'. If you just want to want to serialize the value into a string, use g_ascii_dtostr().

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

Parameters

buffer char[]

A buffer to place the resulting string in

format string

The printf()-style format to use for the code to use for converting.

d double

The gdouble to convert

Return Value

Type: string

The pointer to the buffer with the converted string.

Meta