I want to round up the result of this to 2 decimal places. I already tried Math.floor*(Math.pow (1.02,7)*100)/100 But I get 1,150 instead of 1,148.69 - the answer I aim to be returned.
A snippet of my code atm:
function money (amount) {
return amount*(Math.pow (1.02,7))
}
money(1000);