Rounding Decimal Numbers in JavaScript
http://www.javascripter.net/faq/rounding.htm
I wish this were easier.
Round to the nearest 10ths:
Math.round( 10 * ( 2.412321 - 1.12321312 ) ) / 10
http://www.javascripter.net/faq/rounding.htm
I wish this were easier.
Round to the nearest 10ths:
Math.round( 10 * ( 2.412321 - 1.12321312 ) ) / 10