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 2011-06-21 20:53:09.471048. hosted by webfaction.