Hello,
Like others have said, this is FAQ 7.31. Try
(0.4 + 0.2 + 0 + 0.3 + 0 + 0.1) - 1
on both systems, on one of them it's not zero.
Hope this helps,
Rui Barradas
Às 13:45 de 01/02/2022, Nathan Boeger escreveu:
Hello,
I found something strange and maybe I am going nuts but this does not
Sorry, last post I meant not > 1
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Nathan Boeger<mailto:nboe...@gmail.com>
Sent: Tuesday, February 1, 2022 12:28 PM
To: r-help@r-project.org<mailto:r-help@r-project.org>
Subject: [R] Funky ca
On Tue, 1 Feb 2022 20:45:40 +0700
Nathan Boeger wrote:
> I found something strange and maybe I am going nuts but this does not
> make sense:
>
> > (0.4 + 0.2 + 0 + 0.3 + 0 + 0.1) > 1
> [1] TRUE
Unfortunately, this always happens when computers approximate real
numbers with fractions in binar
This looks like a version of FAQ 7.31.
> On Feb 1, 2022, at 8:45 AM, Nathan Boeger wrote:
>
> [You don't often get email from nboe...@gmail.com. Learn why this is
> important at http://aka.ms/LearnAboutSenderIdentification.]
>
> Hello,
>
> I found something strange and maybe I am going nuts b
Hello,
I found something strange and maybe I am going nuts but this does not make
sense:
> (0.4 + 0.2 + 0 + 0.3 + 0 + 0.1) > 1
[1] TRUE
I tried it on my mac M1 (R v4.1.2) and my Linux box (R v4.0.4). If I use
other values, it does not work (see below). It seems only that combination,
granted I
5 matches
Mail list logo