Fval()

Converts a foating value string into a binary value. The result is a signed 32 Bit floating (single/float) value. Ignoriert führende Leerzeichen. The decimal sign is the „.“.

Syntax: single = Fval(text as string)

Note: The function expects an SRAM-String, EEPROM is not permitted, a constant string parameter eg: fval(„12345“) are processed by the preprocessor.

Example:

  dim s as string
  dim value as single
  s = "123.45"
  value = Fval(s)