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

  • Re: NLSYST Subroutine Source
    ... Gary Scott ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ... just typing "nlsyst" in Google brought up a bunch ...
    (comp.lang.fortran)
  • Re: NLSYST Subroutine Source
    ... Gary Scott wrote: ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ... just typing "nlsyst" in Google brought up a bunch ...
    (comp.lang.fortran)
  • Re: Integer Coersion
    ... Gary Scott wrote: ... You can do a lot with this scheme, but probably not everything and you might have to reserve/define a bit for "native definition" that is logic zero so that you don't mess up the normal/pre-existing kind value definitions. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: What would it take to have no undefined behavior in Fortran ?
    ... Gary Scott wrote: ... smallest memory that any machine might ever have. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: silly program with an interesting bug
    ... Gary Scott wrote: ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)