Table of Contents

Numbers

Example

(ns clojure.examples.hello
   (:gen-class))

;; This program displays Hello World
(defn Example []
   (def x 5)
   (def y 5.25)
   (println (type x))
   (println (type y)))
(Example)

Output

Java.lang.long
Java.lang.double

Number Tests

Refs