1.  
  2. double dub = -3.14;
  3. Console.WriteLine(Math.Abs(dub));
  4. Console.WriteLine(Math.Floor(dub));
  5. Console.WriteLine(Math.Round(Math.Abs(dub)));
  6. // Output:
  7. // 3.14
  8. // -4
  9. // 3
  10.