mirror of
https://github.com/penpot/penpot.git
synced 2025-05-04 00:35:55 +02:00
🐛 Fix unexpected excetion related to rounding integers.
This commit is contained in:
parent
6d0b36e9b9
commit
67cd877281
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@
|
||||||
the nearest integer."
|
the nearest integer."
|
||||||
[v]
|
[v]
|
||||||
#?(:cljs (js/Math.round v)
|
#?(:cljs (js/Math.round v)
|
||||||
:clj (Math/round v)))
|
:clj (Math/round (float v))))
|
||||||
|
|
||||||
(defn ceil
|
(defn ceil
|
||||||
"Returns the smallest integer greater than
|
"Returns the smallest integer greater than
|
||||||
|
|
Loading…
Add table
Reference in a new issue