fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var d = decimal.MinValue;
  8. Console.WriteLine("MinValue = {0}", d);
  9. Console.WriteLine("MinValue + 0.000000000001 = {0}", d + 0.000000000001m);
  10. Console.WriteLine("MinValue + 1 = {0}", d + 1);
  11. }
  12. }
Success #stdin #stdout 0.03s 37984KB
stdin
Standard input is empty
stdout
MinValue                  = -79228162514264337593543950335
MinValue + 0.000000000001 = -79228162514264337593543950335
MinValue + 1              = -79228162514264337593543950334