From 67cd87728180665eada6575e373f7af737d3349c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 26 May 2021 11:54:40 +0200 Subject: [PATCH] :bug: Fix unexpected excetion related to rounding integers. --- common/app/common/math.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/common/math.cljc b/common/app/common/math.cljc index c81db2a39..22ebd97af 100644 --- a/common/app/common/math.cljc +++ b/common/app/common/math.cljc @@ -96,7 +96,7 @@ the nearest integer." [v] #?(:cljs (js/Math.round v) - :clj (Math/round v))) + :clj (Math/round (float v)))) (defn ceil "Returns the smallest integer greater than