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 MathContextMathContext.DEFAULTAMathContextobject 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 aBigDecimalwhose value is the absolute value of thisBigDecimal.BigDecimal.add(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value isthis+rhs.intBigDecimal.compareTo(BigDecimal rhs, MathContext set) Compares thisBigDecimalto another.BigDecimal.divide(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value isthis/rhs.BigDecimal.divideInteger(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value is the integer part ofthis/rhs.BigDecimal.max(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value is the maximum ofthisandrhs.BigDecimal.min(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value is the minimum ofthisandrhs.BigDecimal.multiply(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value isthis*rhs.BigDecimal.negate(MathContext set) Returns aBigDecimalwhose value is-this.BigDecimal.plus(MathContext set) Returns aBigDecimalwhose value is+this.BigDecimal.pow(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value isthis**rhs.BigDecimal.remainder(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value is the remainder ofthis/rhs.BigDecimal.subtract(BigDecimal rhs, MathContext set) Returns aBigDecimalwhose value isthis-rhs. -
Uses of MathContext in com.ibm.icu.text
Methods in com.ibm.icu.text that return MathContextModifier and TypeMethodDescriptionDecimalFormat.getMathContextICU()Returns theMathContextbeing used to round numbers.Methods in com.ibm.icu.text with parameters of type MathContextModifier and TypeMethodDescriptionvoidDecimalFormat.setMathContextICU(MathContext mathContextICU) Rounding and Digit Limits: Overload ofDecimalFormat.setMathContext(MathContext)forMathContext.