PEP0238 lament

piet at cs.uu.nl piet at cs.uu.nl
Mon Jul 23 16:11:07 CEST 2001


>>>>> David Eppstein <eppstein at ics.uci.edu> (DE) writes:

DE> In article <eppstein-03540D.13070222072001 at news.service.uci.edu>,
DE>  David Eppstein <eppstein at ics.uci.edu> wrote:

>> Well then, float is a very bad choice for what to return, or then how do 
>> we explain when 3/4 * 4 = 3 (exactly) but 3/10 * 10 != 10?

DE> Uh, of course I meant 3/10 * 10 != 3...

You have to explain it the same way as you explain that 3*0.1 != 0.3.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list