ValF()
Syntax
Result.f = ValF(String$)Description
Converts a string into a float value. The string must be a float in decimal or in scientific (exponent) format. The number parsing stops at the first non numeric character.
Parameters
String$ The string to convert.
Return value
The float value of the string.
Remarks
Strings holding an integer can also be converted with Val() and 64-bit floats with ValD() (with more accuracy than ValF()).
Example
Debug ValF("10.24") ; will display 10.24 Debug ValF("1.2345e+3") ; will display 1234.5
See Also
ValD(), Val(), Str(), StrF(), StrD()
Supported OS
All