How can I have comma separators displayed in the calculation results? (123456789 to show as 123,456,789)
function calculate(){ a=Number(document.calculator.number1.value); b=Number(document.calculator.number2.value); A1=a*2000 document.calculator.totalA1.value=A1; A2=a*b*240 document.calculator.totalA2.value=A2; A3=a*8*240 document.calculator.totalA3.value=A3; A4=a*960*5 document.calculator.totalA4.value=A4; A5=a*3600*5 document.calculator.totalA5.value=A5; A6=a*3000 document.calculator.totalA6.value=A6; A7=A1+A2+A3+A4+A5+A6 document.calculator.totalA7.value=A7; A8=a*120000 document.calculator.totalA8.value=A8; A9=A8-A7 document.calculator.totalA9.value=A9; } I've seen many suggestions but don't know where to insert the script. Thanks!