Project

General

Profile

$abs » History » Version 6

Per Amundsen, 02/17/2014 09:03 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
//echo -ag $abs(5) returns 5
15 3 Per Amundsen
//echo -ag $abs(-1) returns 1
16 4 Per Amundsen
</pre>