1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 11:10:01 +01:00
This commit is contained in:
Justin Lin 2022-05-04 15:05:21 +08:00
parent bc6288f5d2
commit 86865c6861

View File

@ -1,3 +1,3 @@
function __nearest_multiple_of_4(n) =
let(remain = n % 4)
(remain / 4) > 0.5 ? n - remain + 4 : n - remain;
remain > 2 ? n - remain + 4 : n - remain;