[Python-Dev] 0.1 (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sat Mar 20 01:34:39 CET 2010
- Previous message: [Python-Dev] Decimal & amp; lt; -& amp; gt; float comparisons in py3k.
- Next message: [Python-Dev] Decimal & amp; lt; -& amp; gt; float comparisons in py3k.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing <greg.ewing canterbury.ac.nz> writes:
So do you think that float("0.1") and Decimal("0.1") should be equal or not, and why?
Given that float("0.1") is not the mathematical 0.1, while Decimal("0.1") is, I'd say no.
- Previous message: [Python-Dev] Decimal & amp; lt; -& amp; gt; float comparisons in py3k.
- Next message: [Python-Dev] Decimal & amp; lt; -& amp; gt; float comparisons in py3k.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]