[CLJ-1142] Incorrect divide-by-zero error with floating point numbers Created: 08/Jan/13 Updated: 08/Jan/13
|Affects Version/s:||Release 1.4|
The unary call for clojure.core// treats a dividend of 0.0 differently than the binary call, likely due to inlining.
|Comment by Tim McCormack [ 08/Jan/13 11:22 PM ]|
The relevant code seems to be this in clojure.lang.Numbers/divide:
Making Numbers/divide be more restrictive than double arithmetic seems like a bug; explicitly throwing an ArithmeticException instead of letting the JVM figure it just seems like more work than necessary.