
The Function Block NEG negates the sign of a number.
At the input, a value with a number is expected. The value of a string is attempted to be converted into a number. The boolean value TRUE is converted into a 1.
Note: Also see the article String Conversion to Numbers, if you are working with strings.
The output returns a number with an inverted sign. For example, from 2.25 to -2.25 or -26 to 26.