Python‎ > ‎Fraction‎ > ‎

Fraction.denominator()


Definition
The convert the string or number into the integer.

Syntax
Fraction.denominator

Parameters
Number and String

Examples
The return is equal to:
 >>> Fraction("222.11").denominator
100
>>> Fraction(2.1100).denominator
2251799813685248
>>> Fraction("2.1100").denominator
100

__ne__
The return is:
 >>> Fraction("22.1").denominator.__ne__(Fraction(22.1).denominator)
True
>>>

__le__
The equivalent to following:
 >>> Fraction(22.1).denominator.__le__(Fraction(22.2).denominator)
True
>>>

Comments