☰
D
dejadoc
JOKA
/
joka.math
/
snap
🔍
☾
snap
fn
T snap(T)(T x, T step)
Returns
x
rounded to the nearest multiple of
step
.