Double, double toil and trouble or, Corner-Cases of Comparing Clojure Numbers
Double, double toil and trouble or, Corner-Cases of Comparing Clojure Numbers
Double, double toil and trouble or, Corner-Cases of Comparing Clojure Numbers
http://blog.danieljanus.pl/2025/02/21/double-double-toil-and-trouble/
Let’s talk about Clojure.In Clojure, comparing two numbers can throw an exception. Check this out:( 1/4 0.5M) ;= true ; as expected ( 1/3 0.5M) ; Execution error (ArithmeticException) at java.math.BigDecimal/divide...