How does one make BigDecimals contagious over doubles, instead of the other way around, in a particular computation? I can see the reasoning for making doubles preferred by default: once an operation combines a double with a BigDecimal, the additional BigDecimal precision is consumed by the magnitude of the possible error.
However, in some instances one does not need a wide mantissa but does need more than 10 bits of exponent magnitude, and so needs BigDecimals, and needs them to "win" when mixed with doubles. So, how is this done? I've already checked that +' and friends aren't the solution, and I'd prefer not to force everything to BigDecimals even when doubles will do fine by slapping Ms and bigdecs everywhere... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en