Specifier | Meaning |
---|---|
, | Multiplier |
using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
Console.WriteLine("{0:#,}", 12345);
Console.WriteLine("{0:#,,}", 12345);
}
}
The output:
12
If comma is at end, it acts as a multiplier dividing result by 1000, or 1,000,000, etc.
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |