default | grid-3 | grid-2

Post per Page

Javascript Rounding

I had a javascript calculation that was displaying a ton of decimal points.

 

Here is a way to round to 2 decimal places in Javascript:

 

 

var total = 123.433

total = Math.round(total*100)/100  //returns 123.43

Credit Goes to Javascript ToolKit

 

No comments

Error Page Image

Error Page Image

Oooops.... Could not find it!!!

The page you were looking for, could not be found. You may have typed the address incorrectly or you may have used an outdated link.

Go to Homepage