Round number with JavaScript

This heaven like snippet will round a given number to a thousand, or the precision you want it to.

For those who didn’t like math back in school and we have a hard time figuring out this kind of functions, this is a must in your tool belt.

More about the Math.round() function.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*