Function Block REAL

The Function Block REAL converts any data type to a Real (Float).

Note: Also see the article String Conversion To Numbers, if you are working with strings.

Input

Any data type can be passed at the input.

Output

The output returns a Real or also Float. It is equal to 0, if the following conditions are met at the input:

  • A string with the value "" or "0"
  • A number 0
  • Bool FALSE or NULL