diff --git a/src/uxbox/util/math.cljs b/src/uxbox/util/math.cljs index 5c79e15af..ecea5997d 100644 --- a/src/uxbox/util/math.cljs +++ b/src/uxbox/util/math.cljs @@ -26,6 +26,16 @@ [^number v] (- v)) +(defn sqrt + "Returns the square root of a number." + [v] + (js/Math.sqrt v)) + +(defn pow + "Returns the base to the exponent power." + [b e] + (js/Math.pow b e)) + (defn floor "Returns the largest integer less than or equal to a given number."