public static Int32 NearRoundDown(decimal valueDec, Int32 nearest = 100) { decimal dividRet = DecOperations.Divide(valueDec, nearest); decimal multiRet = DecOperations.Multiply(RoundDown(dividRet), nearest); return(RoundToInt(multiRet)); }
public static decimal FactorizeAmount(decimal amount, decimal factor) { decimal result = DecOperations.Multiply(amount, factor); return(result); }