BigDecimal BigDecimal
BigDecimal BigDecimal
DocFX + Singulink = ♥

Search Results for

    Method DivideRounded

    DivideRounded(BigDecimal, BigDecimal, int, RoundingMode)

    Performs a division operation that results in a rounded decimal answer.

    Declaration
    public static BigDecimal DivideRounded(BigDecimal dividend, BigDecimal divisor, int decimals, RoundingMode mode = RoundingMode.MidpointToEven)
    Parameters
    Type Name Description
    BigDecimal dividend

    The dividend of the division operation.

    BigDecimal divisor

    The divisor of the division operation.

    int decimals

    The number of decimal places the result should be rounded to.

    RoundingMode mode

    The rounding mode to use.

    Returns
    Type Description
    BigDecimal
    © Singulink. All rights reserved.