pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]

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::`- .

Module reference for Pike v7.8 release 116, 2008-12-31