absolutevalue: Difference between revisions
Jump to navigation
Jump to search
m (Replaced source tages with syntaxhighlight) |
m (Conversion script moved page absolutevalue to Absolutevalue without leaving a redirect: Converting page title to first-letter uppercase) |
(No difference)
|
Revision as of 22:15, 9 February 2023
absolutevalue() Function
Returns the absolute value of a number. The absolute value of a number is the number without the sign.
Usage
[h: val = absolutevalue(num)]
You can use the following shorthand for this function:
[h: val = abs(num)]
Examples
====Negative Number====
Returns:
Returns:
Returns:
[r: absolutevalue(-3)]
3
Positive Number
[r: abs(4)]
4
Decimal Number
[r: abs(3.4)]
3.4