Summary

INTEGER? gives wrong answer on funky floats

Metadata

Description

On linux-unix-gnu-x86, version 3.7.5 (rev 61f2799):

 (integer? +inf.0) => #t       ; wrong!
 (integer? -inf.0) => #t       ; wrong!
 (integer? +nan.0) => #f       ; right!

This problem is visible either with or without the numbers egg. There may be a relationship with closed bug #791.

Changes and comments

[2012-06-19 09:29:16 UTC] sjamaan wrote:

Which Chicken version? Is this in compiled or interpreted mode, or both?

I can't reproduce this behaviour with the current Chicken master, so I'll need some more information.

[2012-06-29 19:07:46 UTC] sjamaan wrote:

oh, sorry about that, you did mention the version. I must've overlooked it. Your tested revision is pretty old and there was a bugfix specifically for C_a_i_integerp made in March.

[2012-06-29 23:53:43 UTC] johnwcowan changed status from new to closed

[2012-06-29 23:53:43 UTC] johnwcowan set resolution to fixed

[2012-06-29 23:53:43 UTC] johnwcowan wrote:

I did mean 4.7.5. It's fixed in rev 250fa01, so I am closing this.

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted