using System;
namespace Enum
{
class Program
{
static void Main(string[] args)
{
double[] array = new[] { 1.0, 1.1, 1.2, 1.25, 1.3, 1.4, 1.5, 1.55, 1.6, 1.7, 1.75, 1.8, 1.9 };
foreach (double item in array)
{
double d = item * 4;
double i = Math.Round(d, MidpointRounding.AwayFromZero);
Console.WriteLine(i / 4);
}
}
}
}
dXNpbmcgU3lzdGVtOwoKCm5hbWVzcGFjZSBFbnVtCnsKICAgIGNsYXNzIFByb2dyYW0KICAgIHsKICAgICAgICBzdGF0aWMgdm9pZCBNYWluKHN0cmluZ1tdIGFyZ3MpCiAgICAgICAgewogICAgICAgICAgICBkb3VibGVbXSBhcnJheSA9IG5ld1tdIHsgMS4wLCAxLjEsIDEuMiwgMS4yNSwgMS4zLCAxLjQsIDEuNSwgMS41NSwgMS42LCAxLjcsIDEuNzUsIDEuOCwgMS45IH07CiAgICAgICAgICAgIGZvcmVhY2ggKGRvdWJsZSBpdGVtIGluIGFycmF5KQoJICAgICAgICB7CiAgICAgICAgICAgICAgICBkb3VibGUgZCA9IGl0ZW0gKiA0OwogICAgICAgICAgICAgICAgZG91YmxlIGkgPSBNYXRoLlJvdW5kKGQsIE1pZHBvaW50Um91bmRpbmcuQXdheUZyb21aZXJvKTsKICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGkgLyA0KTsKCSAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQ==