[Python-Dev] Fraction arithmetic (Was: Decimal ... float comparisons in py3k)

2010-03-20 Thread Paul Moore
On 20 March 2010 04:20, Nick Coghlan ncogh...@gmail.com wrote: In the case of floats and Decimals, there's no ambiguity here that creates any temptation to guess - to determine a true/false result for a comparison, floats can be converted explicitly to Decimals without any loss of accuracy.

Re: [Python-Dev] Fraction arithmetic (Was: Decimal ... float comparisons in py3k)

2010-03-20 Thread Mark Dickinson
On Sat, Mar 20, 2010 at 11:41 AM, Paul Moore p.f.mo...@gmail.com wrote: On 20 March 2010 04:20, Nick Coghlan ncogh...@gmail.com wrote: In the case of floats and Decimals, there's no ambiguity here that creates any temptation to guess - to determine a true/false result for a comparison, floats

Re: [Python-Dev] Fraction arithmetic (Was: Decimal ... float comparisons in py3k)

2010-03-20 Thread Guido van Rossum
On Sat, Mar 20, 2010 at 4:58 AM, Mark Dickinson dicki...@gmail.com wrote: On Sat, Mar 20, 2010 at 11:41 AM, Paul Moore p.f.mo...@gmail.com wrote: On 20 March 2010 04:20, Nick Coghlan ncogh...@gmail.com wrote: In the case of floats and Decimals, there's no ambiguity here that creates any