![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a charstring comprising a floating-point number into a float value. The format of the number
in the charstring shall follow the rules for simple basic types and values with the following exceptions:
- leading zeros are allowed,
- leading "+" sign before positive values is allowed,
- "-0.0" is allowed.
Related keyword:
str2float(charstring value) return float |
Example 1:
var float myf := str2float("12345.6"); // has the same value as str2float("123.456E+02")