public static int Round(this decimal value, int digits, MidpointRounding mode)
        {
            mode = mode.ArgumentDefined(nameof(mode));

            return(Convert.ToInt32(Math.Round(value, digits, mode)));
        }
        public static int Round(this double value, MidpointRounding mode)
        {
            mode = mode.ArgumentDefined(nameof(mode));

            return(Convert.ToInt32(Math.Round(value, mode)));
        }