Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up1 `rem` 0 is NaN #563
Comments
jvoigtlaender
referenced this issue
Apr 19, 2016
Closed
Make `rem a 0` throw an error (just like `mod a 0` resp. `a % 0` does) #564
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Fixing this in https://github.com/elm-lang/core/pull/576. |
jvoigtlaender
referenced this issue
Apr 28, 2016
Closed
Make `rem a 0` throw an error (just like `mod a 0` resp. `a % 0` does) #576
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
jvoigtlaender
closed this
May 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
miikka commentedApr 19, 2016
Just noticed this (with elm repl 0.16.0 - not sure if that's the relevant version information):
Issue elm/compiler#262 seems to say that
NaNshouldn't be anInt, so I assume this is a bug. Relevant source.(I originally opened this issue as elm/compiler#1338 but moved it here as per @mgold's suggestion.)