Advertisement
fbinnzhivko

Practice Floating Points

May 19th, 2016
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. using System;
  2. class PracticeFloatingPointNumbers
  3. {
  4.     static void Main()
  5.     {
  6.         decimal n1 = 3.141592653589793238m;
  7.         double n2 = 1.60217657d;
  8.         decimal n3 = 7.8184261974584555216535342341m;
  9.        
  10.         Console.WriteLine("{0}\n{1}\n{2}",n1,n2,n3);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement