Rounds x to the closest value that is divided by divisor without any remainder.
x
The divisor.
snap(10)(17);// ⮕ 20snap(3)(-10);// ⮕ -9 Copy
snap(10)(17);// ⮕ 20snap(3)(-10);// ⮕ -9
Rounds
x
to the closest value that is divided by divisor without any remainder.