Javascript has three rounding functions, all of which are members of the Math object: round (rounds up or down to the nearest integer), floor (rounds) and ceil (rounds). Unfortunately, all three are only rounded to the nearest integer. However, you can first multiply the amount of your dollar (get a penny), and then use ceil to round to the next penny;
var money = 0.075; var pennies = money * 100; money = Math.ceil(pennies) / 100;
Daniel Vandersluis
source share