Numbers in javascript

Written by Alex Wolkov

So apparently I was in the dark,

someone (@bigel) has sent me a link to a great post about 5 missing javascript numbers functions.

In there I found a real jem!


function round(number, decimals){
return parseFloat(number.toFixed(decimals));
}