Custom Numeric Format Strings
This can be done using the "," Custom Specifier,[
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[
^]] which can be used as a number scaling specifier:
"
Group separator and number scaling
Serves as both a group separator and a number scaling specifier. As a group separator, it inserts a localized group separator character between each group. As a number scaling specifier, it divides a number by 1000 for each comma specified.
More information: The "," Custom Specifier.
Group separator specifier:
2147483647 ("##,#", en-US) -> 2,147,483,647
2147483647 ("##,#", es-ES) -> 2.147.483.647
Scaling specifier:
2147483647 ("#,#,,", en-US) -> 2,147
2147483647 ("#,#,,", es-ES) -> 2.147