bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14865: flmax and flmin do not handle +nan.0 correctly


From: Göran Weinholt
Subject: bug#14865: flmax and flmin do not handle +nan.0 correctly
Date: Mon, 15 Jul 2013 13:11:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hello schemers,

the flmax and flmin procedures from (rnrs) do not handle +nan.0
correctly:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (flmax +inf.0 +nan.0)
$1 = +inf.0
scheme@(guile-user)> (flmin -inf.0 +nan.0)
$2 = -inf.0

The result should be +nan.0. From r6rs-lib: "They always return a NaN
when one or more of the arguments is a NaN." Tested with
2.0.9.22-7e816-dirty.

Regards,

-- 
Göran Weinholt <address@hidden>
It's a beautiful day.
Don't let it get away.

Attachment: pgpGQG7RDpHWT.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]