ScriptSpot

Forum topic · Scripts Wanted

printed numbers with comma's

By JokerMartini · 2014-01-10

Description

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

Comments (2)

JokerMartini · 2014-01-10

Simple enough.
Thank you.

Swordslayer · 2014-01-10

(dotNetClass "System.String").Format "{0:n0}" 123456 --> "123,456"