public static void Main()
val = Math.Round(val, 0);
Console.WriteLine(val.ToString());
Console.WriteLine(CheckForNegativeZero(val).ToString());
static double CheckForNegativeZero(double value)
var negativeZeroBits = BitConverter.DoubleToInt64Bits(-0.0);
var valueBits = BitConverter.DoubleToInt64Bits(value);
return value == 0 ? 0 : value;