summaryrefslogtreecommitdiff
path: root/src/boot.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.clj')
-rw-r--r--src/boot.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/boot.clj b/src/boot.clj
index a395590d..c9afa590 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -594,6 +594,11 @@
[num div]
(. clojure.lang.Numbers (remainder num div)))
+(defn rationalize
+ "returns the rational value of num"
+ [num]
+ (. clojure.lang.Numbers (rationalize num)))
+
;;Bit ops
(defn bit-shift-left