The StringToFloat() NWScript command converts a string to a floating point number. If the provided string does not represent a number, this returns 0.0.
Definition
float StringToFloat (string sNumber)
string sNumber- The string containing digits that will be converted to a numeric value.