bigdec?

added
1.9

ns
clojure.core

type
function

(bigdec? x)

Return true if x is a BigDecimal

                ;;;; true for instances of java.lang.BigDecimal

(bigdec? 1.0M)
;;=> true
(bigdec? (new BigDecimal "1")
;;=> true

;;;; false for instances of java.lang.Double, java.lang.Float

(bigdec? 1.0)
;;=> false
(bigdec? (new Double "1"))
;;=> false
(bigdec? (new Float "1")
;;=> false