Uses of Class
com.ibm.icu.math.MathContext
Packages that use MathContext
Package
Description
IBM BigDecimal support.
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
-
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.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
.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
.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
.