I think the introduction to the "Numbers" section is fairly clear that,
from Racket's perspective, +nan.0 and +nan.f are inexact real numbers:
https://docs.racket-lang.org/reference/numbers.html

I do appreciate the irony of the names. Perhaps `(number? +nan.0)` could be
added as another example of `number?` in the documentation, if this is
surprising or unclear.

-Philip

On Thu, Mar 22, 2018 at 1:51 AM, Tim Jervis <t...@timjervis.com> wrote:

> I was amused to see (number? +nan.0) returns #t. Is it worth noting this
> in the documentation?
>
> https://docs.racket-lang.org/reference/number-types.html?q=
> number%3F#%28def._%28%28quote._~23~25kernel%29._number~3f%29%29
> <https://docs.racket-lang.org/reference/number-types.html?q=number?#(def._((quote._~23~25kernel)._number~3f))>
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to