__abs__


Definition
The method return the absolute value of the number.

Syntax
__abs__

Parameters
number

Examples
The absolute value of the fraction is:
 >>> Fraction(2,3).numerator.__abs__()
2

Comments