Uses of Class
cc.redberry.rings.bigint.RoundingMode
-
Packages that use RoundingMode Package Description cc.redberry.rings.bigint Provides classes for performing arbitrary-precision integer arithmetic (BigInteger
) and arbitrary-precision decimal arithmetic (BigDecimal
). -
-
Uses of RoundingMode in cc.redberry.rings.bigint
Methods in cc.redberry.rings.bigint that return RoundingMode Modifier and Type Method Description RoundingMode
MathContext. getRoundingMode()
Returns the roundingMode setting.static RoundingMode
RoundingMode. valueOf(int rm)
Returns theRoundingMode
object corresponding to a legacy integer rounding mode constant inBigDecimal
.static RoundingMode
RoundingMode. valueOf(String name)
Returns the enum constant of this type with the specified name.static RoundingMode[]
RoundingMode. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in cc.redberry.rings.bigint with parameters of type RoundingMode Modifier and Type Method Description BigDecimal
BigDecimal. divide(BigDecimal divisor, int scale, RoundingMode roundingMode)
Returns aBigDecimal
whose value is(this / divisor)
, and whose scale is as specified.BigDecimal
BigDecimal. divide(BigDecimal divisor, RoundingMode roundingMode)
Returns aBigDecimal
whose value is(this / divisor)
, and whose scale isthis.scale()
.BigDecimal
BigDecimal. setScale(int newScale, RoundingMode roundingMode)
Returns aBigDecimal
whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing thisBigDecimal
's unscaled value by the appropriate power of ten to maintain its overall value.Constructors in cc.redberry.rings.bigint with parameters of type RoundingMode Constructor Description MathContext(int setPrecision, RoundingMode setRoundingMode)
Constructs a newMathContext
with a specified precision and rounding mode.
-