Lines Matching refs:Real
10 __all__ = ["Number", "Complex", "Real", "Rational", "Integral"]
26 ## Decimal has all of the methods specified by the Real abc, but it should
27 ## not be registered as a Real because decimals do not interoperate with
58 This should subclass Real.
67 This should subclass Real.
131 """Returns the Real distance from 0. Called for abs(self)."""
147 class Real(Complex):
148 """To Complex, Real adds the operations that work on real numbers.
153 Real also provides defaults for the derived operations.
160 """Any Real can be converted to a native float object.
193 returns a Real. Rounds half toward even.
252 """Real numbers are their real component."""
257 """Real numbers have no imaginary component."""
264 Real.register(float)
267 class Rational(Real):
282 # Concrete implementation of Real's conversion to float.
378 # Concrete implementations of Rational and Real abstract methods.