[Python-Dev] Mixing float and Decimal -- thread reboot

Raymond Hettinger raymond.hettinger at gmail.com
Sun Mar 21 03:44:09 CET 2010


On Mar 20, 2010, at 6:54 PM, Nick Coghlan wrote:
> 
> I suggest a 'linearised' numeric tower that looks like:
> 
> int -> Decimal -> Fraction -> float -> complex

Is that a typo?  Shouldn't Decimal and float go between Fraction and complex?

The abstract numeric tower is:

        Number Complex Real Rational Integral

where both Decimal and float have operations associated with reals.



Raymond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100320/bf390cc3/attachment.html>


More information about the Python-Dev mailing list