$abs » History » Version 10
Per Amundsen, 09/09/2020 10:56 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 | 10 | Per Amundsen | _Supports "Big Integers":https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic_ |
8 | |||
9 | 5 | Per Amundsen | *Parameters* |
10 | |||
11 | 9 | Per Amundsen | N - The number to find the absolute value of. |
12 | 1 | Per Amundsen | |
13 | 6 | Per Amundsen | *Example* |
14 | |||
15 | 1 | Per Amundsen | <pre> |
16 | 7 | Per Amundsen | ;Returns 5. |
17 | //echo -ag $abs(5) |
||
18 | |||
19 | ;Returns 1. |
||
20 | //echo -ag $abs(-1) |
||
21 | 4 | Per Amundsen | </pre> |