Re: rounding

From: Robert Corbett (robert.corbett_at_sun.com)
Date: 06/09/04


Date: 8 Jun 2004 15:36:53 -0700

Richard Maine <nospam@see.signature> wrote in message news:<m1aczeuldr.fsf@macfortran.local>...
> robert.corbett@sun.com (Robert Corbett) writes:
>
> > The Fortran 95 standard can and has been interpreted as requiring
> > NINT(X) to return values more than 0.5 away from X....
>
> I would call that claim misleading. Perhaps one could argue, while
> dancing with the angels on the head of a pin, that it *CAN* be
> interpreted that way, insomuch as anything can be interpreted anyway,
> but that would make the point rather abstract. It is likely also true that
> it has at least once been interpreted this way by someone. I presume
> that's why Bob submitted f90 interp 200 (and his colleague Keith
> Bierman submitted 202). So yes, one could say that Bob contributed to
> motivating the rewording that was done in corrigenda 2 of f95 (and is
> thus is officially part of f95 and also is in the draft of f2003).
>
> However, note that if anyone interpreted the standard that way, it was
> *NOT* J3/WG5 - or anyway, that wasn't the final answer. I realize
> that Bob didn't explicitly say that the interpretation alluded to was
> an official interpretation from J3/WG5, but it would sure be easy to
> get that misimpression. (Looks to me like Giles took the bait).

I did not mean to say and, as noted, I did not say that there was an
official interpretation from J3 or WG5 that NINT is required to return
an integer other than the nearest integer. I might have hoped that by
noting that the Fortran 2003 draft had changed its wording, I would have
left the opposite impression, but apparently I did not.

                                               Sincerely,
                                               Bob Corbett



Relevant Pages

  • Re: Youre assuming that things were the same back then!
    ... I am assuming that trees produced rings in the past as they ... argue so for the scientific invalidity of evolution is asinine. ... The idea that you can support creationism with any sane interpretation ...
    (talk.origins)
  • Re: Youre assuming that things were the same back then!
    ... I am assuming that trees produced rings in the past as they ... argue so for the scientific invalidity of evolution is asinine. ... The idea that you can support creationism with any sane interpretation ...
    (talk.origins)
  • Re: (NDC) Why should *I* be worried about NSA wire tapping?
    ... I have heard plenty of those on the left argue the Constitution is old ... Especially regarding the Second Amendment, ... it was in jest with Richard referring to you saying just a few ... I think there is room for honest disgreement over that interpretation. ...
    (rec.music.gdead)
  • Re: More Deaths Blamed on Bush
    ... Bart Goddard wrote: ... You formed a hypothesis based on your interpretation of his words. ... Bart -- you don't have to argue every fucking word that comes ... unsolicited commercial e-mail or that advertises in discussion newsgroups. ...
    (alt.smokers.cigars)
  • Re: [C++] Need help with program please
    ... But it's still unfortunate. ... but UI argue against that interpretation ... Changes about inconsistent object models ...
    (alt.comp.lang.learn.c-cpp)