mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 10:11:18 +00:00
⚡ Avoid unnecesary call on math helper
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user