Returns the absolute (=positive) value of the specified input value.
Syntax
ABS(Value)
Input
Value | is a value |
Domain type: | any Value domain |
Output
ABS returns: | a value |
Domain: | system domain Value |
Note:
When the input value is undefined, the output will also be undefined.
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:
? ABS(-12) |
returns 12 |
? ABS(POW(-2,3)) | returns 8 |
MapCalc example:
OutMap = ABS(InMap)
InMap |
OutMap |
||||||||||||||||||
|
|
TabCalc example:
OutCol = ABS(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: