Manually create a decimal number

image_pdfimage_print

   
 
/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/

// Manually create a decimal number. 
  
using System;  
  
public class CreateDec {     
  public static void Main() {     
    decimal d = new decimal(12345, 0, 0, false, 2); 
 
    Console.WriteLine(d); 
  }     
}


           
         
     


This entry was posted in Data Types. Bookmark the permalink.