Project

General

Profile

$abs » History » Version 7

Per Amundsen, 02/17/2014 09:06 AM

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 6 Per Amundsen
N - The number to find the absolute value of. (N is a double number)
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>