math abs
for math
Returns the absolute value of a number.
Signature
> math abs {flags}
Input/output types:
input | output |
---|---|
duration | duration |
list<duration> | list<duration> |
list<number> | list<number> |
number | number |
Examples
Compute absolute value of each number in a list of numbers
> [-50 -100.0 25] | math abs
╭───┬────────╮
│ 0 │ 50 │
│ 1 │ 100.00 │
│ 2 │ 25 │
╰───┴────────╯