ValF()

Syntax

Result.f = ValF(String$)
Description
Transform a string into a float value. The string must be a float in decimal format.

Note: Strings containing a long integer can also be converted with Val(), 64 bit floats with ValD() (with more accuracy than ValF()) and quads with ValQ().

Example:

  Result.f = ValF("10.24") ; Result will be filled with 10.24.

Supported OS

All

<- ValD() - String Index - ValQ() ->