Cyclone says 1.5 is an odd number
Closed this issue · 1 comments
jpellegrini commented
Hello!
I just noticed Cyclone returns this:
(odd? 1.5) => #t
(even? 1.5) => #f
Most Schemes signal an error on both. I would guess that it would be ok to answer #f
for both... But It's currently saying 1.5 is odd. :)
justinethier commented
Good catch @jpellegrini! Thanks for the bug report.
Cyclone will now throw an error if a non-integer is passed to these functions.