StringToFloatEx Function

Converts a string to a floating point number with some more options.

int StringToFloatEx(const char[] str, float& result)

Parameters

const char[] str

String to convert to a float.

float& result

Variable to store result in.

Return Value

Number of characters consumed.