This function returns the absolute value of number x, i.e., if x>=0 it returns x, otherwise it returns -x.
abs(number x) #Output: Number
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Next »
This function returns the absolute value of number x, i.e., if x>=0 it returns x, otherwise it returns -x.
abs(number x) #Output: Number
Parser expression | Description |
---|---|
abs(2) | This example returns 2 |
abs(-2) | This example returns -(-2) = 2 |
abs(0) | This example returns 0 |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
number x | NUMBER | Any given number. |
This function returns a NUMBER
Powered by Atlassian Confluence 8.5.7, themed by Refined 7.5.3 and Decadis AG