Menu

#225 NaN is equal to infinities

closed-fixed
nobody
None
5
2007-11-08
2007-06-01
No

1)

$ sisc
which: no rlwrap in
(/home/olpa/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games)
SISC (1.15.3)
#;> (define (gx:nan? x) (equal? x #!nan))
#;> (map gx:nan? (list (/ 0.0 0.0) (/ 1.0 0.0) (/ -1.0 0.0)))
(#t #t #t)

Should be (#t #f #f)

2)

#;> (= #!nan 2)
#t

Should be #f.

Discussion

  • Scott G. Miller

    Scott G. Miller - 2007-11-08
    • status: open --> closed-fixed
     
  • Scott G. Miller

    Scott G. Miller - 2007-11-08

    Logged In: YES
    user_id=25869
    Originator: NO

    Actually, #!nan isn't comparable even to itself, so the first value should be #f as well. Fixed in CVS.

     

Log in to post a comment.