I have a function to add commas to numbers:
function commafy( num ) { num.toString().replace( /\\B(?=(?:\\d{3})+)$/g, \",\" ); }
Unfortun
This worked for me:
function commafy(inVal){ var arrWhole = inVal.split("."); var arrTheNumber = arrWhole[0].split("").reverse(); var newNum = Array(); for(var i=0; i