Rounding numbers....

admin

Administrator
Staff member
Is there any way to round numbers in javascript? Say I have a variable:

x=3.675

how would I round it to two places? So, afterward it would be 3.68. Is there some way to do that?
 
Back
Top