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:
parent
a15a2010b6
commit
8d46271e9d
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue