• (dec' x)
Returns a number one less than num. Supports arbitrary precision.
See also: dec

1 Example top

  • user=> (dec' 0.1)
    -0.9
    
    user=> (dec' 1)
    0
    
    user=> (dec' 1.0)
    0.0
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1070 top

(defn dec'
  "Returns a number one less than num. Supports arbitrary precision.
  See also: dec"
  {:inline (fn [x] `(. clojure.lang.Numbers (decP ~x)))
   :added "1.0"}
  [x] (. clojure.lang.Numbers (decP x)))
Vars in clojure.core/dec':
Used in 0 other vars

Comments top

No comments for dec'. Log in to add a comment.