Re: On writing negative zero - with or without sign



James Giles wrote:

Gary Scott wrote:
...

The default should probably be whatever the common behavior currently
is. That way it breaks less existing code.



The always outputting minus if the data is negative is the default.

ok, but all of my existing compilers print -0.0 as just 0.0.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows it can't be done.

-- Henry Ford
.



Relevant Pages