[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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4