##-Inf

known as "Negative Infinity"
symbolic valuesince v1.9.946Edit

Floating point representation of Negative Infinity -∞.


Examples:

##-Inf
;;=> ##-Inf

Math with infinities:

(/ -1 0)
;;=> ##-Inf

(Math/log 0)
;;=> ##-Inf

(* 0 ##-Inf)
;;=> ##NaN

Equivalent to the JavaScript symbol -Infinity:

js/-Infinity
;;=> ##-Inf

See Also:


Reader code @ tools.reader:src/main/clojure/clojure/tools/reader.clj
(defn- read-symbolic-value
  [rdr _ opts pending-forms]
  (let [sym (read* rdr true nil opts pending-forms)]
    (case sym
      Inf Double/POSITIVE_INFINITY
      -Inf Double/NEGATIVE_INFINITY
      NaN Double/NaN
      (err/reader-error rdr (str "Invalid token: ##" sym)))))

Reader table @ tools.reader:src/main/clojure/clojure/tools/reader.clj
(defn- dispatch-macros [ch]
  (case ch
    \^ read-meta                ;deprecated
    \' (wrapping-reader 'var)
    \( read-fn
    \= read-eval
    \{ read-set
    \< (throwing-reader "Unreadable form")
    \" read-regex
    \! read-comment
    \_ read-discard
    \? read-cond
    \: read-namespaced-map
    \# read-symbolic-value
    nil))