.NET String.Format() to add commas in thousands place for a number
.NET String.Format() to add commas in thousands place for a number
.NET String.Format() to add commas in thousands place for a number
Re: .NET String.Format() to add commas in thousands place for a number
```
$"{1234:n}"; // Output: 1,234.00
$"{9876:n0}"; // No digits after the decimal point. Output: 9,876
```
$"{1234:n}"; // Output: 1,234.00
$"{9876:n0}"; // No digits after the decimal point. Output: 9,876
```