0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix unexpected excetion related to rounding integers.

This commit is contained in:
Andrey Antukh 2021-05-26 11:54:40 +02:00
parent 6d0b36e9b9
commit 67cd877281

View file

@ -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