$abs » History » Version 1
Per Amundsen, 02/07/2014 11:22 AM
1 | 1 | Per Amundsen | h1. $abs |
---|---|---|---|
2 | |||
3 | $abs(N) |
||
4 | |||
5 | Returns the absolute value of number N. |
||
6 | |||
7 | <pre> |
||
8 | //echo -ag $abs(5) returns 5 |
||
9 | //echo -ag $abs(-1) returns 1 |
||
10 | </pre> |