StringToFloat Function

Converts a string to a floating point number.

float StringToFloat(const char[] str)

Parameters

const char[] str

String to convert to a float.

Return Value

Floating point result, or 0.0 on error.