You are here: irt.org | About | Feedback | 4616 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q8
Sent by
Bryan Price on Wednesday May 23, 2007 at 16:43:23
Worth:
Not worth reading
Length:
Technical:
Comments:
A slightly complicated version:
var n = 12345678.91011;
function commas(n){
var d = (''+n).split('.'), x=(d[0].length+2)%3;
d[0] = ('00'.slice(x)+d[0]).match(/\d{3}/g).join(',').slice(2-x);
return d.join('.');
}
Other feedback on 'irt.org FAQ Knowledge Base Q8' - show all