Programming Clojure, Fourth Edition: page 13 & 19

Based on what is written on page 19, the following arbitrary precision computation does not work. Is there a way to make it work ? And maybe indicate it in the book ?

user=> (/ 22.0 7)
3.142857142857143
user=> (/ 22.0M 7)
Execution error (ArithmeticException) at java.math.BigDecimal/divide (BigDecimal.java:1810).
Non-terminating decimal expansion; no exact representable decimal result.
1 Like