unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14868: flfinite? +nan.0 returns #t
@ 2013-07-15 12:30 Göran Weinholt
  2013-07-16  8:05 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Göran Weinholt @ 2013-07-15 12:30 UTC (permalink / raw)
  To: 14868

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

Hello schemers,

the flfinite? procedure from (rnrs) is wrong for +nan.0:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (flfinite? +nan.0)
$1 = #t

The r6rs-lib says this: "flfinite? tests whether it is not an infinity
and not a NaN". Tested with Guile 2.0.9.22-7e816-dirty.

Regards,

-- 
Göran Weinholt <goran@weinholt.se>
"Bring me back // to a story left untold // so we can write the ending."
 -- Aly & Fila feat. Jwaydan - We Control The Sunlight

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

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

* bug#14868: flfinite? +nan.0 returns #t
  2013-07-15 12:30 bug#14868: flfinite? +nan.0 returns #t Göran Weinholt
@ 2013-07-16  8:05 ` Mark H Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2013-07-16  8:05 UTC (permalink / raw)
  To: Göran Weinholt; +Cc: 14868-done

Göran Weinholt <goran@weinholt.se> writes:
> the flfinite? procedure from (rnrs) is wrong for +nan.0:
>
> scheme@(guile-user)> (import (rnrs))
> scheme@(guile-user)> (flfinite? +nan.0)
> $1 = #t

Fixed in 85b32d43e63bd2939ce3706f44a50f153ba01a46.

    Thanks!
      Mark





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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 12:30 bug#14868: flfinite? +nan.0 returns #t Göran Weinholt
2013-07-16  8:05 ` 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).