toFloat
Description
Tries to coerce value into a float (32-bit floating point vaule). If value is a number, the conversion is direct. If value is a string, it is parsed to see if it represents a float. If not, type casting fails.
Syntax
toFloat( value, [failover] )
Examples
toFloat("38.772") //returns 38.772 toFloat({Root Container.TextField.text}, 0.0) //returns the value in the text box as a float, or 0.0 if the value doesn't represent an number.