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.02s 2008-10-11 00:15:19.440681. hosted by webfaction.