Programming Clojure, Fourth Edition: page 13 & 19

This is a bit beyond what we decided to cover in the book, but you can use the with-precision macro to indicate a specific precision (and optionally rounding mode) for bigdecimal computations:

user=> (with-precision 5 (/ 22.0M 7))
3.1429M
1 Like