[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Procps in core-updates
From: |
Kaelyn |
Subject: |
Re: Procps in core-updates |
Date: |
Sun, 19 Mar 2023 19:22:54 +0000 |
Hi Felix,
------- Original Message -------
On Sunday, March 19th, 2023 at 5:49 PM, Felix Lechner via "Development of GNU
Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:
>
>
> Hi Andreas,
>
> On Sat, Mar 18, 2023 at 5:33 AM Andreas Enge andreas@enge.fr wrote:
>
> > FAIL: strtod_nol_or_err("123") != 123.000000
>
>
> Can you multiply by "1.0" to force a floating-point comparison, or
> round the other side to the nearest int?
Judging from the function name ("strtod_nol_or_err", which seems in line with
the standard "strtof"/"strtod"/"strtold" conversion functions), the function
returns a double value. Depending on the specific code, it could be
encountering inconsistencies comparing a double to a float (non-double)
constant due to the difference in types' precision.
Cheers,
Kaelyn
>
> Kind regards
> Felix