Click to See Complete Forum and Search --> : Rounding numbers....


AdamBrill
12-26-2002, 12:57 PM
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?

Charles
12-26-2002, 01:02 PM
See the last three posts at http://forums.webdeveloper.com/showthread.php?s=&threadid=1265.

AdamBrill
12-26-2002, 01:19 PM
I got it to work now... :) thanks