abs

abs(x)

Returns the absolute value of a number. The argument may be a plain or long integer or a floating point number. If the argument is a complex number, its magnitude is returned.

To make this function work on your own classes, implement the __abs__ method.

 

A Django site. this page was rendered by a django application in 0.01s 2010-09-02 14:54:55.527913. hosted by webfaction.