StrToFloatDef
Converts a number's character string representation to its numerical value, allowing you to specify a default value.
Syntax
StrToFloatDef(val, def)
val = string whose numerical value you want to calculate
def = default result if val is not a representation of a number
def = default result if val is not a representation of a number
Remarks
If you do not need to specify a default value, see StrToFloat.
Examples
StrToFloatDef("3.14", -1) = 3.14 (numerical value)StrToFloatDef("abc", -1) = -1