Beispiel #1
0
        public static decimal NearRoundDown(decimal valueDec, Int32 nearest = 100)
        {
            decimal dividRet = OperationsDec.Divide(valueDec, nearest);

            decimal multiRet = OperationsDec.Multiply(RoundDown(dividRet), nearest);

            return(multiRet);
        }
        public static decimal FactorizeAmount(decimal amount, decimal factor)
        {
            decimal result = OperationsDec.Multiply(amount, factor);

            return(result);
        }