Finding the range of decimal datatype.

Tripati_tutu
Posted by Tripati_tutu under C# category on | Points: 40 | Views : 2640
To find the range for a decimal datatype, write the below code within main method
Console.WriteLine("Minimum value=" + decimal.MinValue);
Console.WriteLine("Maximum value=" + decimal.MaxValue);
Console.ReadKey();

ReadKey() is a method which works similar to getch() function in "c" language.

When you will press F5 key, then you will get the output as
Minimum value= -7922816
Maximum value= 7922816

Comments or Responses

Login to post response