public inbox for [email protected]
help / color / mirror / Atom feedFrom: John Naylor <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: BUG #19467: Inconsistency in MOD() result involving POWER() and floating-point precision in PostgreSQL
Date: Mon, 27 Apr 2026 19:20:21 +0700
Message-ID: <CANWCAZaQfqAaATv4=tkRvV4mNW+6-XGcVTAfZw7qNcMBAuEN2Q@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Mon, Apr 27, 2026 at 6:33 PM PG Bug reporting form
<[email protected]> wrote:
> Mathematically, this corresponds to the fractional part of 3^70.31, which
> should be deterministic for a given evaluation strategy.
>
> However, different systems produce significantly different results:
These two statements don't contradict eachother.
Trying the expression on WolframAlpha shows 0.41 is close to the
expected value, so I don't see a bug here.
--
John Naylor
Amazon Web Services
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: BUG #19467: Inconsistency in MOD() result involving POWER() and floating-point precision in PostgreSQL
In-Reply-To: <CANWCAZaQfqAaATv4=tkRvV4mNW+6-XGcVTAfZw7qNcMBAuEN2Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox