__le__


Definition
The method returns whether the a small or equal to b.

Syntax
__le__

Parameters
N/A

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


The equivalent to following output:
 >>> Fraction(2.111300).limit_denominator(1).__le__(Fraction(2, 1))
True

The returns are following:
 >>> Fraction(2,3).numerator.__le__(2)
True

The equal to following results:
 >>> Fraction(0,1).real.__le__(Fraction(0, 1))
True

a<=b
The return same output.
 >>> a=4
>>> b=3
>>> a<=b
False

Comments