[plt-scheme] Infinite?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Thu Jul 16 09:15:38 EDT 2009

On Thu, Jul 16, 2009 at 2:07 PM, Paulo J. Matos<pocmatos at gmail.com> wrote:
> Some simple examples show that eq? works in some particular cases, any
> cases where it wouldn't work?
> Or is it just a matter of correct programming style to use eqv? over eq?.

-> (/ +inf.0 0.0)
-> (eq? (/ +inf.0 0.0) +inf.0)
-> (eqv? (/ +inf.0 0.0) +inf.0)

In the IEEE floating point standard there are many values that
represent infinity.

See, e.g.



Posted on the users mailing list.