Negate
Description
Returns the logical complement of a numeric (Number) value. Positive values become negative and negative values become positive.
A similar function to return the complement of a Boolean value is Not.
Use
- Input field:
- Select an argument. (Number)
- Output field name:
- Enter an Output field name.
Example
Input_field | Result |
---|---|
1 | -1 |
-3 | 3 |
58267 | -58267 |
-4765 | 4765 |
Hero Platform_ Example
An example of this function can be found in Hero Platform_'s library of examples.
Download the example titled "function_Negate" to see an example of this function.