decimal literal : Decimal : Data Type C# Examples


C# Examples » Data Type » Decimal »

 

decimal literal









    
using  System;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        decimal  MyDecimal  =  3.50m;
        
        Console.WriteLine(MyDecimal);
    }
}
    
   
  
   



Output

3.50


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Decimal