[Python-Dev] test_coercion failing
Mark Favas
m.favas@per.dem.csiro.au
Thu, 22 Mar 2001 03:44:30 +0800
[Tim searches for -0's]
On Tru64 Unix (4.0F) with Compaq's C compiler I get:
Python 2.1b2 (#344, Mar 22 2001, 03:18:25) [C] on osf1V4
Type "copyright", "credits" or "license" for more information.
>>> x = 0.0
>>> print "%.17g" % -x
-0
>>> print "%+.17g" % -x
-0
and on Solaris 8 (Sparc) with gcc I get:
Python 2.1b2 (#23, Mar 22 2001, 03:25:27)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
>>> x = 0.0
>>> print "%.17g" % -x
-0
>>> print "%+.17g" % -x
-0
while on FreeBSD 4.2 with gcc I get:
Python 2.1b2 (#3, Mar 22 2001, 03:36:19)
[GCC 2.95.2 19991024 (release)] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>> x = 0.0
>>> print "%.17g" % -x
0
>>> print "%+.17g" % -x
+0
--
Mark Favas - m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA