Sujet : Re: xkcd: Day Counter
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : rec.arts.sf.written rec.arts.comics.strips comp.lang.fortran comp.lang.c++Date : 05. Apr 2026, 22:13:50
Autres entêtes
Organisation : None to speak of
Message-ID : <87mrzhp0tt.fsf@example.invalid>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13)
Chris Ahlstrom <
OFeem1987@teleworm.us> writes:
Lynn McGuire wrote this screed in ALL-CAPS:
>
xkcd: Day Counter
https://xkcd.com/3228/
>
Yes, floating point errors are the bane of my life ! Not so much now
with double precision but the single precision days were nightmares.
>
Well these days we have long double.
C has had long double as a standard type since the original 1989
ANSI C standard. (K&R1, 1978, didn't have long double.)
But wider floating-point types don't eliminate rounding errors.
[...]
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal