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 wrote: > On Sat, Mar 20, 2010 at 11:41 AM, Paul Moore wrote: >> On 20 March 2010 04:20, Nick Coghlan wrote: >>> In the case of floats and Decimals, there's no ambiguity here that >>> creates any temptation to guess - to determine a true/false resul

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 wrote: > On 20 March 2010 04:20, Nick Coghlan 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

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

2010-03-20 Thread Paul Moore
On 20 March 2010 04:20, Nick Coghlan 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. For Fractions, th