[Python-Dev] Round Bug in Python 1.6?
Christian Tismer
tismer@tismer.com
Thu, 06 Apr 2000 23:22:30 +0200
Hi,
asa side effect, I happened to observe the following rounding bug.
It happens in Stackless Python, which is built against the
pre-unicode CVS branch.
Is this changed for 1.6, or might it be my bug?
D:\python\spc>python
Python 1.5.42+ (#0, Mar 29 2000, 20:23:26) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> round(3.1415926585, 4)
3.1415999999999999
>>> ^Z
D:\python>python
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> round(3.1415926585, 4)
3.1416
>>> ^Z
ciao - chris
--
Christian Tismer :^) <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net
14163 Berlin : PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com