Returns the input value multiplied by -1.
Syntax
NEG(Value)
Input
Value | is a value |
Domain type: | any Value domain |
Output
NEG returns: | a value |
Domain: | system domain Value |
Notes:
Tip:
When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.
Usable in
MapCalc, TabCalc, Simple calculators
Examples
Pocket line calculator examples:
? NEG(-12) |
returns 12 |
? NEG(POW(-2,3)) | returns 8 |
MapCalc example:
OutMap = NEG(InMap)
InMap |
OutMap |
||||||||||||||||||
|
|
TabCalc example:
OutCol = NEG(InCol)
InCol |
OutCol |
2.0 |
-2.0 |
1.0 |
-1.0 |
0.5 |
-0.5 |
0.2 |
-0.2 |
0.0 |
0.0 |
-1.0 |
1.0 |
? |
? |
-0.4 |
0.4 |
-0.1 |
0.1 |
See also: