Project

General

Profile

Actions

$abs » History » Revision 3

« Previous | Revision 3/11 (diff) | Next »
Per Amundsen, 02/08/2014 12:23 AM


$abs

Added in 1.9.0

$abs(N)

Returns the absolute value of number N.

//echo -ag $abs(5) returns 5
//echo -ag $abs(-1) returns 1

N is a double.

Updated by Per Amundsen almost 11 years ago · 3 revisions

Also available in: PDF HTML TXT