FloatToString Function

Converts a floating point number to a string.

int FloatToString(float num, char[] str, int maxlength)

Parameters

float num

Floating point number to convert.

char[] str

Buffer to store string in.

int maxlength

Maximum length of string buffer.

Return Value

Number of characters written to the buffer, not including the null terminator.