(unchecked-double x)
Coerce to double. Subject to rounding.
;; the function taking a BigDecimal with limited decimal places
(unchecked-double 1.77M)
=> 1.77
;; the function taking a double with limited decimal places
(unchecked-double 1.22)
=> 1.22
;; the function taking '0'
(unchecked-double 0)
=> 0.0
;; the function does (eventually) round up...:
(unchecked-double 1.000000000123456789)
=> 1.0000000001234568
;;...or down:
(unchecked-double 1.000000000123456489)
=> 1.0000000001234566