abs
abs(number
)
The ABS function has the following arguments:
number
The number or integer of which you want the absolute value
The abs function returns the absolute value of the input number. The value returned will have the same data type as the input (for integer input will return an integer, for number input will return a number).
Formula |
Description |
Result |
---|---|---|
abs |
Absolute value of 34 |
34 |
abs(-22) | Absolute value of -22 | 22 |
abs(-163.77) | Absolute value of -163.77 | 163.77 |