this post was submitted on 22 Feb 2025
0 points (50.0% liked)

Clojure programming language discussion

526 readers
1 users here now

Clojure is a Lisp that targets JVM and JS runtimes

Finding information about Clojure

API Reference

Clojure Guides

Practice Problems

Interactive Problems

Clojure Videos

The Clojure Community

Clojure Books

Tools & Libraries

Clojure Editors

Web Platforms

founded 5 years ago
MODERATORS
 

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...

#clojure #clj #cljs [email protected] @clojure

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here