The other day I was commenting at work about how difficult it is to read numbers without commas. I was looking at a bunch of stats that tell us things like how many users we have in hotmail in various countries, markets, and so on. These numbers are all in millions, tens of millions, hundreds of thousands and so on.
When you see a table like this:
| Some Random Number |
| 7895126 |
| 95878 |
| 271001544 |
and there are lots of numbers in a table can you get the info you need without counting from the right? I can't, or I'm too lazy to.
In Excel there is this nice handy button:
that will format any cell so you can get a table and make it look like this:
| Some Random Number |
| 7,895,126 |
| 95,878 |
| 271,001,544 |
Now I can quickly asses the relative values of each row without thinking.
In C# this is stupid easy.
Just use String.Format("{0:n}", value)
Please help save unnecessary brain cycles.