0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

Avoid unnecesary call on math helper

This commit is contained in:
Andrey Antukh 2023-06-20 11:46:06 +02:00
parent a15a2010b6
commit 8d46271e9d

View file

@ -192,7 +192,7 @@
(defn round-to-zero
"Given a number if it's close enough to zero round to the zero to avoid precision problems"
[num]
(if (almost-zero? num)
(if (< (abs num) 1e-4)
0
num))