Converts a double 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 to_str.
buffer |
A buffer to place the resulting string in |
format |
The printf-style format to use for the code to use for converting. |
buf_len |
The length of the buffer. |
d |
The double to convert |
The pointer to the buffer with the converted string. |