internal static Double XPathRound(Double value) { double temp = Math.Round(value); return (value - temp == 0.5) ? temp + 1 : temp; }