Math round only up quarter

Viewed 1394
var number = 0.08;
var newNumber = Math.round(number * 4) / 4 //round to nearest .25

With the code above i can round to nearest .25. However i only want it to round up. Whereby:

0.08 = 0.25
0.22 = 0.25
0.25 = 0.25
0.28 = 0.5

How will that be possible?

5 Answers
Related