This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Wednesday, February 25, 2009

Rounding digits in Javascript

Use varnumber.toFixed(2) to round to two decimal digits:

http://www.webmasterworld.com/javascript/3030448.htm

No comments:

Post a Comment