Update notes on Decimal.

This commit is contained in:
Raymond Hettinger 2008-02-14 01:08:02 +00:00
parent ac45aff2f1
commit ddb164a651
1 changed files with 5 additions and 4 deletions

View File

@ -49,9 +49,11 @@ Inexact.register(float)
# Inexact.register(decimal.Decimal) # Inexact.register(decimal.Decimal)
## Notes on Decimal and it how relates to the numeric tower ## Notes on Decimal
## -------------------------------------------------------- ## ----------------
## Decimal is Real except that it does not support rich comparisons. ## Decimal has all of the methods specified by the Real abc, but it should
## not be registered as a Real because decimals do not interoperate with
## binary floats.
## ##
## Decimal has some of the characteristics of Integrals. It provides ## Decimal has some of the characteristics of Integrals. It provides
## logical operations but not as operators. The logical operations only apply ## logical operations but not as operators. The logical operations only apply
@ -305,7 +307,6 @@ class Real(Complex):
return +self return +self
Real.register(float) Real.register(float)
# Real.register(decimal.Decimal)
class Rational(Real, Exact): class Rational(Real, Exact):