Excellent!
In case anyone else has the same problem I did: if the latest swank-
clojure blows up on you, merging in the changes from the trunk will
solve it. This is fairly painless as there are only a few conflicts.
--~--~-~--~~~---~--~~
You received this messag
The current implementation of conversion of clojure.lang.Ratio class
to BigDecimal (via bigdec) or to a fixed precision floating point
value is not what one would expect. For example:
user> (double (/ (expt 2 1024) 3))
Infinity
when in fact it should return: 5.992310449541053E307
and
user=> (b
After thinking about it some more (bigdec (/ 1 3)) should be
equivalent to (/ 1M 3) which actually throws the ArithmeticException,
so this would do away with the need for decimalValueSafe, and bigdec
should simply perform a division on a ratio.
I have uploaded a second diff [1] that has these sim