Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Round Bug in Python 1.6?

Skip Montanaroskip@mojam.com (Skip Montanaro)
Thu, 6 Apr 2000 15:31:02 -0500 (CDT)


    Chris> I happened to observe the following rounding bug.  It happens in    Chris> Stackless Python, which is built against the pre-unicode CVS    Chris> branch.    Chris> Is this changed for 1.6, or might it be my bug?I doubt it's your problem.  I see it too with 1.6a2 (no stackless):    % ./python    Python 1.6a2 (#2, Apr  6 2000, 15:27:22)  [GCC pgcc-2.91.66 19990314 (egcs-1.1.2 release)] on linux2    Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam    >>> round(3.1415926585, 4)    3.1415999999999999Same behavior whether compiled with -O2 or -g.-- Skip Montanaro |http://www.mojam.com/skip@mojam.com |http://www.musi-cal.com/


[8]ページ先頭

©2009-2025 Movatter.jp