public static decimal MyDecimalRound(decimal d, int decimals){ d = d + 0.000000000000001m; return Decimal.Round(d, decimals);}