In article <[EMAIL PROTECTED]>, Bart Ogryczak <[EMAIL PROTECTED]> wrote: >On 2008-01-18, citizen J. Peng testified: >> hello, >> >> why this happened on my python? > >>>>> a=3.9 >>>>> a >> 3.8999999999999999 > >>>> a = 3.9 >>>> print a >3.9
This has nothing to do with python. Apparently you don't know the first thing about floating point numbers. I suggest reading the wikipedia entry. http://en.wikipedia/wiki/floating_point Groetjes Albert > >bart >-- >"PLEASE DO *NOT* EDIT or poldek will hate you." - packages.dir (PLD) >http://candajon.azorragarse.info/ http://azorragarse.candajon.info/ -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- like all pyramid schemes -- ultimately falters. [EMAIL PROTECTED]&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst -- http://mail.python.org/mailman/listinfo/python-list