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 andr...@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

Reply via email to