I am currently building a basic webpage for work and want to include a price calculator. The issue is the currency is in Ugandan Shillings so the output is in the hundreds of thousands and millions and will display as a block number (example: 98635816). How to insert commas to make the output number easier to read?
P.S. Here is the HTML for the calculator
<form oninput="y.value=(19657.86*parseInt(b.value)).toFixed(0);
x.value=(928.29*parseInt(b.value)).toFixed(0);
z.value=((y.value)-(x.value)).toFixed(0)">
<input type="number" id="b" value="0">
<output name="y" for="a b"></output>
<output name="x" for="a b"></output>
<output name="z" for="a b"></output>