Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method abs()


Method abs

float abs(float f)
int abs(int f)
object abs(object f)

Description

Return the absolute value for f. If f is an object it must implement lfun::`< and unary lfun::`-.