INNER CODE UNIT · Java

subtract

SeaseLtd/rated-ranking-evaluator · rre-core/src/main/java/io/sease/rre/Calculator.java:59

    public static BigDecimal subtract(final BigDecimal minuend, final BigDecimal subtraend) {
        return minuend.subtract(subtraend);
    }

    /**
     * Executes a division between the two numbers.
     *
     * @param dividend the dividend.
     * @param divisor  the divisor.
     * @return the result of the division.
     */
    public static BigDecimal divide(final BigDecimal dividend, final BigDecimal divisor) {
        return dividend.divide(divisor, 4, RoundingMode.CEILING);
    }

    /**
     * Executes a division between the two numbers.
     *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…