RoundingMode.valueOf

Returns the {@code RoundingMode} object corresponding to a legacy integer rounding mode constant in {@link BigDecimal}.

@param rm legacy integer rounding mode to convert @return {@code RoundingMode} corresponding to the given integer. @throws IllegalArgumentException integer is out of range

class RoundingMode
static
valueOf
(
const int rm
)

Meta