Re: BUG #19801: atan2d underflow causes equivalent queries to return different results

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 2320415112(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19801: atan2d underflow causes equivalent queries to return different results
Date: 2026-12-04 03:43:25
Message-ID: CAGRkXqR7LR0+ZPuprL2MkkmJf+CzB7uLu_criyHRPsCp6dMwUA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Thanks for the report, I can reproduce it.

I am leaning toward not a bug because atan2d computes the angle in
radians first. For this input that angle is too small for float8, so
atan2 already returns 0. The docs don't promise an exact result for
such tiny inputs.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-04 03:49:32 Re: parse_ident rejects a U& quoted identifier in strict mode
Previous Message Kirill Reshke 2026-12-04 02:57:33 Re: BUG #19968: ALTER COLUMN TYPE fails with internal errors if a dependent object is dropped concurrently