Coerce to BigDecimal
user=> (bigdec 3.0) 3.0M user=> (bigdec 5) 5M user=> (bigdec -1) -1M user=> (bigdec -1.0) -1.0M
; It also works for strings: (bigdec "123.45") => 123.45M
;; Works with ratios too user => (bigdec 1/2) ;; 0.5M
user=> (+ 0.1 0.1 0.1) 0.30000000000000004 user=> (def a (bigdec 0.1)) #'user/a user=> (+ a a a) 0.3M
Returns true if n is a BigDecimal
Sets the precision and rounding mode to be used for BigDecimal operations. Usage: (with-precision...
Coerce to BigInt
Coerce to double
Coerce to float
bigdec