Rounds the given number to the nearest unit (e.g. 10, 1, 0.1).
The number to round.
The unit to round num to.
num
Rounds the given number to the nearest unit (e.g. 10, 1, 0.1).