Finding the range of decimal datatype.

Posted by Tripati_tutu under C# category on | Points: 40 | Views : 2142
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);

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