Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.fortran > #126570 > unrolled thread

xkcd: Day Counter

Started byLynn McGuire <lynnmcguire5@gmail.com>
First post2026-04-03 22:40 -0500
Last post2026-04-06 14:40 +0000
Articles 20 on this page of 27 — 15 participants

Back to article view | Back to comp.lang.fortran


Contents

  xkcd: Day Counter Lynn McGuire <lynnmcguire5@gmail.com> - 2026-04-03 22:40 -0500
    Re: xkcd: Day Counter Your Name <YourName@YourISP.com> - 2026-04-04 16:46 +1300
      Re: xkcd: Day Counter Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-04 07:40 +0000
        Re: xkcd: Day Counter Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-04-04 16:19 +0000
          Re: xkcd: Day Counter Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-04 22:09 +0000
            Re: xkcd: Day Counter Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-04-05 12:50 +0000
              Re: xkcd: Day Counter Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-05 20:40 +0000
                Re: xkcd: Day Counter Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-04-05 23:06 +0000
                  Re: xkcd: Day Counter Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-06 01:36 +0000
              Re: xkcd: Day Counter Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2026-04-06 16:03 -0600
            Re: xkcd: Day Counter Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-04-08 18:20 +0000
      Re: xkcd: Day Counter Paul S Person <psperson@old.netcom.invalid> - 2026-04-04 09:16 -0700
      Re: xkcd: Day Counter Stuart Redmann <DerTopper@web.de> - 2026-04-06 16:10 +0200
        Re: xkcd: Day Counter Paul S Person <psperson@old.netcom.invalid> - 2026-04-06 08:33 -0700
    Re: xkcd: Day Counter Tony Nance <tnusenet17@gmail.com> - 2026-04-04 10:40 -0400
      Re: xkcd: Day Counter Mark Jackson <mjackson@alumni.caltech.edu> - 2026-04-04 11:01 -0400
    Re: xkcd: Day Counter Jay Morris <morrisj@epsilon3.me> - 2026-04-04 11:44 -0500
    Re: xkcd: Day Counter Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-04-05 10:22 -0400
      Re: xkcd: Day Counter Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-04-05 14:13 -0700
        Re: xkcd: Day Counter Thomas Koenig <tkoenig@netcologne.de> - 2026-04-06 05:25 +0000
          Re: xkcd: Day Counter Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-04-06 00:43 -0700
            Re: xkcd: Day Counter Thomas Koenig <tkoenig@netcologne.de> - 2026-04-06 20:14 +0000
              Re: xkcd: Day Counter Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-04-06 14:30 -0700
          Re: xkcd: Day Counter Nioclás Pól Caileán de Ghloucester <thanks-to@Taf.com> - 2026-04-06 15:54 +0000
            Re: xkcd: Day Counter Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-06 20:40 +0000
              Re: xkcd: Day Counter "J-P. Rosen" <rosen@adalog.fr> - 2026-04-07 07:48 +0200
    Re: xkcd: Day Counter candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2026-04-06 14:40 +0000

Page 1 of 2  [1] 2  Next page →


#126570 — xkcd: Day Counter

FromLynn McGuire <lynnmcguire5@gmail.com>
Date2026-04-03 22:40 -0500
Subjectxkcd: Day Counter
Message-ID<10qq170$d49s$2@dont-email.me>
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.

Explained at:
    https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter

Whatever you do, do not select “Space Opera Mode” in the new mode drop 
down list.  "Boat mode" made me a little queasy after a while.  And 
"modem mode" does not seem to do anything.

Lynn

[toc] | [next] | [standalone]


#126571

FromYour Name <YourName@YourISP.com>
Date2026-04-04 16:46 +1300
Message-ID<10qq1jh$dcph$1@dont-email.me>
In reply to#126570
On 2026-04-04 03:40:15 +0000, Lynn McGuire said:
> 
> 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.
> 
> Explained at:
>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
> 
> Whatever you do, do not select “Space Opera Mode” in the new mode 
> drop down list.  "Boat mode" made me a little queasy after a while.  
> And "modem mode" does not seem to do anything.
> 
> Lynn

Yep. It's a problem in Excel (still today!), which is relied on by 
almost all businesses, thanks to the idiots at Microsoft not being able 
to actually program. I discovered it by accident when I had some 
cross-checking calucations that said there was an error, when, after 
quite a lot of time trying to find the error, turned out to in Excel 
itself.  :-\

Those of us with brains use Apple computers and the Numbers spreadsheet 
program does not have this issue.

[toc] | [prev] | [next] | [standalone]


#126572

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-04-04 07:40 +0000
Message-ID<10qqf90$gkpg$1@dont-email.me>
In reply to#126571
On Sat, 4 Apr 2026 16:46:58 +1300, Your Name wrote:

> Those of us with brains use Apple computers and the Numbers
> spreadsheet program does not have this issue.

Those of us with brains know how to use decimal or binary arithmetic
as appropriate to the problem at hand.

LibreOffice Calc:

    = 0.1 + 0.1 + 0.1 - 0.3

evaluates to

    0

Python, binary arithmetic:

    0.1 + 0.1 + 0.1 - 0.3

evaluates to

    5.551115123125783e-17

Python, decimal arithmetic:

    >>> import decimal; D = decimal.Decimal
    >>> D("0.1") + D("0.1") + D("0.1") - D("0.3")

evaluates to

    Decimal('0.0')

[toc] | [prev] | [next] | [standalone]


#126575

FromNioclás Pól Caileán de Ghloucester <thanks-to@Taf.com>
Date2026-04-04 16:19 +0000
Message-ID<10qrdmt$18htl$2@paganini.bofh.team>
In reply to#126572
LibreOffice Draw and LibreOffice Writer are buggy.
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)

[toc] | [prev] | [next] | [standalone]


#126578

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-04-04 22:09 +0000
Message-ID<10qs26g$10uoq$3@dont-email.me>
In reply to#126575
On Sat, 4 Apr 2026 16:19:43 -0000 (UTC), Nioclás Pól Caileán de
Ghloucester wrote:

> LibreOffice Draw and LibreOffice Writer are buggy.

Have you tried submitting bug reports?

[toc] | [prev] | [next] | [standalone]


#126579

FromNioclás Pól Caileán de Ghloucester <thanks-to@Taf.com>
Date2026-04-05 12:50 +0000
Message-ID<10qtlrd$1ineu$3@paganini.bofh.team>
In reply to#126578
In comp.lang.c++ Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
|----------------------------------------|
|"Have you tried submitting bug reports?"|
|----------------------------------------|

Dear Mister D’Oliveiro,

I do not submit a bug report for LibreOffice. I almost never use
LibreOffice Draw. Opening the same file in different versions of
LibreOffice Writer results in different layouts.

I do not expect a programmer to remove these bugs. I can cope with
them.

Thanks for asking. Have a good week!
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)

[toc] | [prev] | [next] | [standalone]


#126581

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-04-05 20:40 +0000
Message-ID<10quhbe$1lru4$2@dont-email.me>
In reply to#126579
On Sun, 5 Apr 2026 12:50:55 -0000 (UTC), Nioclás Pól Caileán de
Ghloucester wrote:

> I do not expect a programmer to remove these bugs. I can cope with
> them.

Your posting came across as a complaint. Which is why I wondered why
you were bothering to mention them at all.

[toc] | [prev] | [next] | [standalone]


#126583

FromNioclás Pól Caileán de Ghloucester <thanks-to@Taf.com>
Date2026-04-05 23:06 +0000
Message-ID<10quptl$1li4v$1@paganini.bofh.team>
In reply to#126581
In comp.lang.c++ Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
|-------------------------------------------|
|"Your posting came across as a complaint." |
|-------------------------------------------|

A posting by me about LibreOffice is a complaint. It is a complaint
without deserving improvements to gratis software to which I do not
contribute. So I do not burden the LibreOffice donaters with a
demand.

|-------------------------------------------|
|"Which is why I wondered why               |
|you were bothering to mention them at all."|
|-------------------------------------------|

A good trait of LibreOffice Calc is mentioned, so I reacted via a
remark about problematic parts of LibreOffice.
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)

[toc] | [prev] | [next] | [standalone]


#126584

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-04-06 01:36 +0000
Message-ID<10qv2mn$1qcao$2@dont-email.me>
In reply to#126583
On Sun, 5 Apr 2026 23:06:32 -0000 (UTC), Nioclás Pól Caileán de
Ghloucester wrote:

> A good trait of LibreOffice Calc is mentioned, so I reacted via a
> remark about problematic parts of LibreOffice.

I wonder why you felt the need to?

[toc] | [prev] | [next] | [standalone]


#126594

FromLouis Krupp <lkrupp@invalid.pssw.com.invalid>
Date2026-04-06 16:03 -0600
Message-ID<55WAR.152922$kD1.66884@fx48.iad>
In reply to#126579
On 4/5/2026 6:50 AM, Nioclás Pól Caileán de Ghloucester wrote:
> In comp.lang.c++ Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> |----------------------------------------|
> |"Have you tried submitting bug reports?"|
> |----------------------------------------|
>
> Dear Mister D’Oliveiro,
>
> I do not submit a bug report for LibreOffice. I almost never use
> LibreOffice Draw. Opening the same file in different versions of
> LibreOffice Writer results in different layouts.
>
> I do not expect a programmer to remove these bugs. I can cope with
> them.
>
> Thanks for asking. Have a good week!
> (S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)

I believe you would be doing the maintainers (and other users) of 
LibreOffice a favor by calling attention to bugs, especially if you can 
provide a clear description of the bug and a small test case. A better 
product is a win for everyone; it might even make your life easier some day.

Louis

[toc] | [prev] | [next] | [standalone]


#126597

FromNioclás Pól Caileán de Ghloucester <thanks-to@Taf.com>
Date2026-04-08 18:20 +0000
Message-ID<10r6697$2lot0$1@paganini.bofh.team>
In reply to#126578
In comp.lang.c++ Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
|-----------------------------------------------------|
|"> LibreOffice Draw and LibreOffice Writer are buggy.|
|                                                     |
|Have you tried submitting bug reports?"              |
|-----------------------------------------------------|

I do use LibreOffice Writer's feature to submit crashes' reports.
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)

[toc] | [prev] | [next] | [standalone]


#126576

FromPaul S Person <psperson@old.netcom.invalid>
Date2026-04-04 09:16 -0700
Message-ID<l4e2tkh3a4l2bmuqa79cq98tnhs9i70sm2@4ax.com>
In reply to#126571
On Sat, 4 Apr 2026 16:46:58 +1300, Your Name <YourName@YourISP.com>
wrote:

>On 2026-04-04 03:40:15 +0000, Lynn McGuire said:
>> 
>> 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.
>> 
>> Explained at:
>>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
>> 
>> Whatever you do, do not select “Space Opera Mode� in the new mode 
>> drop down list.  "Boat mode" made me a little queasy after a while.  
>> And "modem mode" does not seem to do anything.
>> 
>> Lynn
>
>Yep. It's a problem in Excel (still today!), which is relied on by 
>almost all businesses, thanks to the idiots at Microsoft not being able 
>to actually program. I discovered it by accident when I had some 
>cross-checking calucations that said there was an error, when, after 
>quite a lot of time trying to find the error, turned out to in Excel 
>itself.  :-\

In OOo, use of round(<value>;2) (or equivalent function and desired
precision) can help a lot.

>Those of us with brains use Apple computers and the Numbers spreadsheet 
>program does not have this issue.
-- 
"Here lies the Tuscan poet Aretino,
Who evil spoke of everyone but God,
Giving as his excuse, 'I never knew him.'"

[toc] | [prev] | [next] | [standalone]


#126587

FromStuart Redmann <DerTopper@web.de>
Date2026-04-06 16:10 +0200
Message-ID<2081810922.796969382.868060.DerTopper-web.de@news.eternal-september.org>
In reply to#126571
Your Name <YourName@YourISP.com> wrote:
> On 2026-04-04 03:40:15 +0000, Lynn McGuire said:
>> 
>> 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.
>> 
>> Explained at:
>> https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
>> 
>> Whatever you do, do not select “Space Opera Mode” in the new mode 
>> drop down list.  "Boat mode" made me a little queasy after a while.  
>> And "modem mode" does not seem to do anything.
>> 
>> Lynn
> 
> Yep. It's a problem in Excel (still today!), which is relied on by 
> almost all businesses, thanks to the idiots at Microsoft not being able 
> to actually program. I discovered it by accident when I had some 
> cross-checking calucations that said there was an error, when, after 
> quite a lot of time trying to find the error, turned out to in Excel 
> itself.  :-\
> 
> Those of us with brains use Apple computers and the Numbers spreadsheet 
> program does not have this issue.

I encountered the following problem with Excel: if you use Excel’s
Automation API (based on the Microsoft COM framework), you can access
everything inside an Excel workbook programmatically. Also any charts that
have been added to a spreadsheet. However, if you‘re trying to iterate
through the series of the graph and try to access the formatting of the
series (are there lines between the points of the series, if so which
color, thickness, etc.), you‘ll get an error when you’re accessing a series
that is not shown in the legend of the chart because the legend is too
small. If you increase the size of the chart to an ridiculous amount (so
that you can be sure that the legend will be big enough to show every
series of the chart), you can access everything without a problem. 

If a program contains such incredible errors, I would keep my fingers from
it. Although I haven’t tried to do the same thing with Open/LibreOffice‘s
automation API, I‘d vouch that such an error would not occur.

And yes, us professionals prefer Apple over MS, even though Visual Studio
has some features that I sorely miss in other IDEs.

Regards
Stuart

[toc] | [prev] | [next] | [standalone]


#126589

FromPaul S Person <psperson@old.netcom.invalid>
Date2026-04-06 08:33 -0700
Message-ID<bgk7tk1c7chi06sv9qh3duep15klh6c0ir@4ax.com>
In reply to#126587
On Mon, 6 Apr 2026 16:10:08 +0200, Stuart Redmann <DerTopper@web.de>
wrote:

>Your Name <YourName@YourISP.com> wrote:
>> On 2026-04-04 03:40:15 +0000, Lynn McGuire said:
>>> 
>>> 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.
>>> 
>>> Explained at:
>>> https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
>>> 
>>> Whatever you do, do not select â??Space Opera Modeâ?? in the new mode 
>>> drop down list.  "Boat mode" made me a little queasy after a while.  
>>> And "modem mode" does not seem to do anything.
>>> 
>>> Lynn
>> 
>> Yep. It's a problem in Excel (still today!), which is relied on by 
>> almost all businesses, thanks to the idiots at Microsoft not being able 
>> to actually program. I discovered it by accident when I had some 
>> cross-checking calucations that said there was an error, when, after 
>> quite a lot of time trying to find the error, turned out to in Excel 
>> itself.  :-\
>> 
>> Those of us with brains use Apple computers and the Numbers spreadsheet 
>> program does not have this issue.
>
>I encountered the following problem with Excel: if you use Excel’s
>Automation API (based on the Microsoft COM framework), you can access
>everything inside an Excel workbook programmatically. Also any charts that
>have been added to a spreadsheet. However, if you‘re trying to iterate
>through the series of the graph and try to access the formatting of the
>series (are there lines between the points of the series, if so which
>color, thickness, etc.), you‘ll get an error when you’re accessing a series
>that is not shown in the legend of the chart because the legend is too
>small. If you increase the size of the chart to an ridiculous amount (so
>that you can be sure that the legend will be big enough to show every
>series of the chart), you can access everything without a problem. 
>
>If a program contains such incredible errors, I would keep my fingers from
>it. Although I haven’t tried to do the same thing with Open/LibreOffice‘s
>automation API, I‘d vouch that such an error would not occur.

Theoretically speaking, would that allow creating a program that can
convert an ODT file containing bits of spreadsheet (copied and pasted
from an ODS file) to a text file that actually includes the spreasheet
bits instead of ignoring them?

>And yes, us professionals prefer Apple over MS, even though Visual Studio
>has some features that I sorely miss in other IDEs.
-- 
"Here lies the Tuscan poet Aretino,
Who evil spoke of everyone but God,
Giving as his excuse, 'I never knew him.'"

[toc] | [prev] | [next] | [standalone]


#126573

FromTony Nance <tnusenet17@gmail.com>
Date2026-04-04 10:40 -0400
Message-ID<10qr7t6$ojmo$1@dont-email.me>
In reply to#126570
On 4/3/26 11:40 PM, Lynn McGuire wrote:
> 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.
> 
> Explained at:
>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
> 
> Whatever you do, do not select “Space Opera Mode” in the new mode drop 
> down list.  


But if you do select Space Opera Mode, the box to change modes is active 
as it scrolls by. And the rollover text still works too.

Tony



"Boat mode" made me a little queasy after a while.  And
> "modem mode" does not seem to do anything.
> 
> Lynn
> 

[toc] | [prev] | [next] | [standalone]


#126574

FromMark Jackson <mjackson@alumni.caltech.edu>
Date2026-04-04 11:01 -0400
Message-ID<n3cnecFs5t7U2@mid.individual.net>
In reply to#126573
On 4/4/2026 10:40 AM, Tony Nance wrote:
> On 4/3/26 11:40 PM, Lynn McGuire wrote:
>> 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.
>>
>> Explained at:
>>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
>>
>> Whatever you do, do not select “Space Opera Mode” in the new mode drop 
>> down list. 
> 
> 
> But if you do select Space Opera Mode, the box to change modes is active 
> as it scrolls by.

And if you let it get too "far away," the scrollwheel on your mouse can 
bring it back.  Not a problem at all.

-- 
Mark Jackson - https://mark-jackson.online/
   I think it's a mistake — a very tempting mistake to make —
   to take stock by looking at what we still have rather than
   what we have already lost.   - M. Gessen

[toc] | [prev] | [next] | [standalone]


#126577

FromJay Morris <morrisj@epsilon3.me>
Date2026-04-04 11:44 -0500
Message-ID<10qrf4r$r22r$1@epsilon3.eternal-september.org>
In reply to#126570
On 4/3/2026 10:40 PM, Lynn McGuire wrote:
> 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.
> 
> Explained at:
>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
> 
> Whatever you do, do not select “Space Opera Mode” in the new mode drop 
> down list.  "Boat mode" made me a little queasy after a while.  And 
> "modem mode" does not seem to do anything.
> 
> Lynn
> 

When I selected modem mode it made the appropriate noises and the 
picture slowly displayed as it downloaded.

[toc] | [prev] | [next] | [standalone]


#126580

FromChris Ahlstrom <OFeem1987@teleworm.us>
Date2026-04-05 10:22 -0400
Message-ID<10qtr82$1f4di$2@dont-email.me>
In reply to#126570
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.

> Explained at:
>     https://www.explainxkcd.com/wiki/index.php/3228:_Day_Counter
>
> Whatever you do, do not select “Space Opera Mode” in the new mode drop 
> down list.  "Boat mode" made me a little queasy after a while.  And 
> "modem mode" does not seem to do anything.

Took me a little while to figure out where the mode dropdown was
when in Origami mode.

-- 
"One day I woke up and discovered that I was in love with tripe."
		-- Tom Anderson

[toc] | [prev] | [next] | [standalone]


#126582

FromKeith Thompson <Keith.S.Thompson+u@gmail.com>
Date2026-04-05 14:13 -0700
Message-ID<87mrzhp0tt.fsf@example.invalid>
In reply to#126580
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.com
void Void(void) { Void(); } /* The recursive call of the void */

[toc] | [prev] | [next] | [standalone]


#126585

FromThomas Koenig <tkoenig@netcologne.de>
Date2026-04-06 05:25 +0000
Message-ID<10qvg49$1t2f3$2@dont-email.me>
In reply to#126582
Keith Thompson <Keith.S.Thompson+u@gmail.com> schrieb:
> 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.

Nor does "long double" have to be any more accurate thean
"double".  C's type system leaves something to be desired
in that respect.

Fortran showed how it's done with its kind numbers and
SELECTED_REAL_KIND function - you ask for a certain minimum
precision, and the compiler either gives it to you, or your program
fails at compile time.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.fortran


csiph-web