Hi,
I hope the core.typed is proper category, there is no "core" to select
Clojure 1.10.1
(with-precision 4 1.23456) ;; 1.23456
(with-precision 4 1.23456M) ;; 1.23456M
(with-precision 4 (BigDecimal. 1.23456)) ;; 1.2345600000000001017497197608463466167449951171875M
(with-precision 4 (* 1 (BigDecimal. 1.23456))) ;; 1.235M
(with-precision 4 (+ 0 (BigDecimal. 1.23456))) ;; 1.235M
it only seems to work as expected when the number is supplied as result of * or +
Regards,
Daniel