This is something easy but I see you are here because you need to know how to do this. So here is the code that can help you with Rounding Off Numbers using Javascript. Nice and Easy!! <script language="javascript"> function formatNumber(myNum, numOfDec) { var decimal = 1 for(i=1; i<=numOfDec;i++) decimal = decimal *10 var myFormattedNum [...]
↧