unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14865: flmax and flmin do not handle +nan.0 correctly
@ 2013-07-15 11:11 Göran Weinholt
  2013-07-16  9:27 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Göran Weinholt @ 2013-07-15 11:11 UTC (permalink / raw)
  To: 14865

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

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 <goran@weinholt.se>
It's a beautiful day.
Don't let it get away.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-16  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 11:11 bug#14865: flmax and flmin do not handle +nan.0 correctly Göran Weinholt
2013-07-16  9:27 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).