$abs » History » Version 5
Per Amundsen, 02/17/2014 09:02 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 | N - The number to find the absolute value of. |
||
10 | 1 | Per Amundsen | |
11 | <pre> |
||
12 | //echo -ag $abs(5) returns 5 |
||
13 | //echo -ag $abs(-1) returns 1 |
||
14 | </pre> |
||
15 | 3 | Per Amundsen | |
16 | 4 | Per Amundsen | N is a double number. |