asciiFormatd

Converts a graphene.types.PI_2 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'.

The format must just be a single format specifier starting with %, expecting a graphene.types.PI_2 argument.

The returned buffer is guaranteed to be nul-terminated.

If you just want to want to serialize the value into a string, use funcGLib.ascii_dtostr.

string
asciiFormatd
(
string buffer
,
int bufLen
,
string format
,
double d
)

Parameters

buffer string

a buffer to place the resulting string in

bufLen int

the length of the buffer

format string

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

d double

the value to convert

Return Value

Type: string

the pointer to the buffer with the converted string