From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: arithmetic anomaly
Date: Thu, 25 Mar 2021 16:57:52 -0700 [thread overview]
Message-ID: <8464f5c6-7455-d055-c5eb-f4942b7fcb20@eastlink.ca> (raw)
In-Reply-To: <CAN=4vMokvyhoRiF+y=YJg=fBzmwKj3kj0StKJCN+B_yLeg5fAw@mail.gmail.com>
On 2021-03-25 3:54 p.m., Roman Perepelitsa wrote:
> On Thu, Mar 25, 2021 at 11:44 PM Ray Andrews <rayandrews@eastlink.ca
> <mailto:rayandrews@eastlink.ca>> wrote:
>
> On 2021-03-25 1:40 p.m., Lawrence Velázquez wrote:
> >
> > The bad news is that *all* your figures -- your numerators, Brett's
> > numerators, and the denominators -- are actually incorrect for
> > level=15 and higher.
> Sheesh, what gives? Seems no accuracy beyond 15 digits?
>
>
> Indeed. 64-bit floating point numbers usually have 15.95 decimal
> digits of precision. Depending on the compiler and how you write your
> code, you might get higher precision but in practice many projects
> turn this off because having borderline non-deterministic results of
> computation sucks.
That's for sure. I'd rather the result was truncated. Why show
garbage? Nuts, why compute garbage?
next prev parent reply other threads:[~2021-03-25 23:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 15:52 Ray Andrews
2021-03-25 20:40 ` Lawrence Velázquez
2021-03-25 22:44 ` Ray Andrews
2021-03-25 22:54 ` Roman Perepelitsa
2021-03-25 23:57 ` Ray Andrews [this message]
2021-03-26 0:16 ` Oliver Kiddle
2021-03-26 0:37 ` Ray Andrews
2021-03-26 10:35 ` Roman Perepelitsa
2021-03-26 14:36 ` Ray Andrews
2021-03-26 14:49 ` Roman Perepelitsa
2021-03-26 15:35 ` Ray Andrews
2021-03-26 17:09 ` Lawrence Velázquez
2021-03-26 21:45 ` Ray Andrews
2021-03-26 21:59 ` Lawrence Velázquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8464f5c6-7455-d055-c5eb-f4942b7fcb20@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).