Project

General

Profile

$abs » History » Version 9

Per Amundsen, 12/11/2018 08:03 PM

1 1 Per Amundsen
_Added in 1.9.0_
2 2 Per Amundsen
3 5 Per Amundsen
*$abs(N)*
4 1 Per Amundsen
5
Returns the absolute value of number N.
6 5 Per Amundsen
7
*Parameters*
8
9 9 Per Amundsen
N - The number to find the absolute value of.
10 1 Per Amundsen
11 6 Per Amundsen
*Example*
12
13 1 Per Amundsen
<pre>
14 7 Per Amundsen
;Returns 5.
15
//echo -ag $abs(5)
16
17
;Returns 1.
18
//echo -ag $abs(-1)
19 4 Per Amundsen
</pre>