absolute
Modified on Tue, 22 Aug 2023
Description
Calculate the absolute value of a number
Syntax
absolute(number)
Parameters
Input Parameter | Type | Description |
---|---|---|
number | number | The number for which the absolute value is to be calculated |
Return value
Type |
---|
number |
Sample
Example | Result | Description |
---|---|---|
absolute(-5) | 5 | Returns the absolute value of the input number |
To view all the Math and Number functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article