   to the value of x and NaN if the value of this Decimal or
   the value of x is NaN"
   [v x]
-   (.cmp (-decimal v) x))
+  (.cmp (-decimal v) x))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Operations

(def ^:static +decimal+ (js/Decimal.noConflict))
(def ^:dynamic *decimal* +decimal+)

(def round-mapping {
  :round-up 0
  :round-down 1
  :round-ceil 2
  :round-floor 3
  :round-half-up 4
  :round-half-down 5
  :round-half-even 6
  :round-half-ceil 7
  :round-half-floor 8
  :euclid 9})

(def modulo-mapping {
  :round-up 0
  :round-down 1
  :round-floor 3
  :round-half-even 6
  :euclid 9})

(defn config!
  "Set the global configuration for the decimal constructor.

  function also accepts. You can read more about here:
  http://mikemcl.github.io/decimal.js/#Dconfig"
  [options]
  (let [opts #js {:precision (:precision options (.-precision +decimal+))
                  :rounding ((:rounding options) round-mapping (.-rounding +decimal+))
                  :modulo ((:modulo options :round-down) modulo-mapping (.-modulo +decimal+))
                  :minE (:min-e options (.-minE +decimal+))
                  :maxE (:max-e options (.-maxE +decimal+))
                  :toExpNeg (:to-exp-neg options (.-toExpNeg +decimal+))
                  :toExpPos (:to-exp-pos options (.-toExpPos +decimal+))
                  :crypto (:crypto options (.-crypto +decimal+))}]
    (.set +decimal+ opts)
    nil))

(defn config
