Lines Matching full:real
11 __all__ = ["Number", "Complex", "Real", "Rational", "Integral"]
28 ## Decimal has all of the methods specified by the Real abc, but it should
29 ## not be registered as a Real because decimals do not interoperate with
37 In short, those are: a conversion to complex, .real, .imag, +, -,
57 def real(self):
58 """Retrieve the real component of this number.
60 This should subclass Real.
68 This should subclass Real.
148 """Returns the Real distance from 0. Called for abs(self)."""
169 class Real(Complex):
170 """To Complex, Real adds the operations that work on real numbers.
175 Real also provides defaults for the derived operations.
182 """Any Real can be converted to a native float object.
254 def real(self):
255 """Real numbers are their real component."""
260 """Real numbers have no imaginary component."""
267 Real.register(float)
270 class Rational(Real):
283 # Concrete implementation of Real's conversion to float.
375 # Concrete implementations of Rational and Real abstract methods.