This may seem like a silly question. But how can I print numbers with commas?
example
a = 123456
b = 1234
c = 123
d = 123456789
-- I would like to print these like this
a = 123,456
b = 1,234
c = 123
d = 123,456,789
Forum topic · Scripts Wanted
By JokerMartini · 2014-01-10
This may seem like a silly question. But how can I print numbers with commas?
example
a = 123456
b = 1234
c = 123
d = 123456789
-- I would like to print these like this
a = 123,456
b = 1,234
c = 123
d = 123,456,789
JokerMartini · 2014-01-10
Simple enough.
Thank you.
Swordslayer · 2014-01-10
(dotNetClass "System.String").Format "{0:n0}" 123456 --> "123,456"