Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace GitHub
- {
- class Program
- {
- static void Main(string[] args)
- {
- double[] arr = new double[] { 0.9, 1.5, 2.4, 2.5, 3.14 };
- foreach (var item in arr)
- {
- Console.WriteLine("{0}=={1}",item,Math.Round(item,MidpointRounding.AwayFromZero));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement