Uses of Class
com.ibm.icu.math.MathContext
Packages that use MathContext
-
Uses of MathContext in com.ibm.icu.math
Fields in com.ibm.icu.math declared as MathContextModifier and TypeFieldDescriptionstatic final MathContext
MathContext.DEFAULT
AMathContext
object initialized to the default settings for general-purpose arithmetic.private static final MathContext
BigDecimal.plainMC
Methods in com.ibm.icu.math with parameters of type MathContextModifier and TypeMethodDescriptionBigDecimal.abs
(MathContext set) Returns aBigDecimal
whose value is the absolute value of thisBigDecimal
.BigDecimal.add
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis+rhs
.int
BigDecimal.compareTo
(BigDecimal rhs, MathContext set) Compares thisBigDecimal
to another.BigDecimal.divide
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis/rhs
.BigDecimal.divideInteger
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the integer part ofthis/rhs
.private BigDecimal
BigDecimal.dodivide
(char code, BigDecimal rhs, MathContext set, int scale) private BigDecimal
BigDecimal.finish
(MathContext set, boolean strip) BigDecimal.max
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the maximum ofthis
andrhs
.BigDecimal.min
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the minimum ofthis
andrhs
.BigDecimal.multiply
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis*rhs
.BigDecimal.negate
(MathContext set) Returns aBigDecimal
whose value is-this
.BigDecimal.plus
(MathContext set) Returns aBigDecimal
whose value is+this
.BigDecimal.pow
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis**rhs
.BigDecimal.remainder
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the remainder ofthis/rhs
.private BigDecimal
BigDecimal.round
(MathContext set) BigDecimal.subtract
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis-rhs
. -
Uses of MathContext in com.ibm.icu.text
Methods in com.ibm.icu.text that return MathContextModifier and TypeMethodDescriptionDecimalFormat.getMathContextICU()
Returns theMathContext
being used to round numbers.Methods in com.ibm.icu.text with parameters of type MathContextModifier and TypeMethodDescriptionvoid
DecimalFormat.setMathContextICU
(MathContext mathContextICU) Rounding and Digit Limits: Overload ofDecimalFormat.setMathContext(java.math.MathContext)
forMathContext
.