i'm currently using Math.round() to round off some percentages, however it will only round to the nearest integer. seeing as i'm working with currency i could do with being able to round to 2 decimal places.
i've done a bit of research on the round() method but can't see any arguments to add for number of decimal places etc but i would assume there is some method of doing this as its quite a major function in most applications dealing with numbers.
anybody know how to do this?
thanks, dd/mm/yy
i've done a bit of research on the round() method but can't see any arguments to add for number of decimal places etc but i would assume there is some method of doing this as its quite a major function in most applications dealing with numbers.
anybody know how to do this?
thanks, dd/mm/yy
Comment