Custom Numeric Formatting : Number format : Data Type C# Examples


C# Examples » Data Type » Number format »

 

Custom Numeric Formatting









    
using  System;
class  Test
{
        public  static  void  Main()
        {
                Console.WriteLine("{0:###\\#}",  255);
                Console.WriteLine(@"{0:###\#}",  255);
                Console.WriteLine("{0:###'#0%;'}",  1456);
        }
}
    
   
  
   



Output

255#
255#
1456#0%;


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Number format