30 of a total 30 for sale at ???????? at [???|???] in ???????? has been accepted by ???? [???] from ?????????? for a total of 292500.0000Gold.
80000 of a total 754000 for sale at ???????? at [???|???] in ??????? has been accepted by ??????? [???] from ???????? for a total of 80000.0000Gold.
100000 of a total 854000 for sale at ???????? at [???|???] in ??????? has been accepted by ??????? [???] from ?????? for a total of 100000.0000Gold.
It's so easy to put commas in numbers and round the decimals. There's really no reason why any numbers should be in any communication without commas and rounding. It should be a common function used when outputting any number. I'm tired of staring at these emails trying to decipher the numbers.
function addCommas(n, dec)
{
var rx = /(\d+)(\d{3})/;
var decimalVal = Math.pow(10, dec);
var numberStr = String(Math.round(n * decimalVal) / decimalVal);
numberStr = numberStr.replace(/^\d+/, function(w)
{
while(rx.test(w))
w = w.replace(rx, '$1,$2');
return w;
});
if (dec == 0)
return numberStr;
if (numberStr.indexOf(".") == -1)
return numberStr + "." + String(decimalVal).substr(1);
return numberStr + String(decimalVal).substr(numberStr.length - numberStr.indexOf("."))
}