The absolute value is sometimes called "abs"
Definition
The absolute value is a function |⋅|:R→R given by:
|x|={xx≥0−xotherwise
It simply returns the positive value of a number.
Note
More strictly the function should be given as: |⋅|:R→R≥0
Examples
- |−2|=2
- |2|=2
- |0|=0