Does anyone know how to round up a number to its nearest multiple of 5? I found an algorithm to round it to the nearest multiple of 10 but I can\'t find this one.
T
if (n % 5 == 1){ n -= 1; } else if (n % 5 == 2) { n -= 2; } else if (n % 5 == 3) { n += 2; } else if (n % 5 == 4) { n += 1; }