Uses of Class
com.ibm.icu.math.MathContext
-
Packages that use MathContext Package Description com.ibm.icu.math IBM BigDecimal support.com.ibm.icu.text 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 MathContext Modifier and Type Field Description static MathContextMathContext. DEFAULTAMathContextobject initialized to the default settings for general-purpose arithmetic.Methods in com.ibm.icu.math with parameters of type MathContext Modifier and Type Method Description BigDecimalBigDecimal. abs(MathContext set)Returns aBigDecimalwhose value is the absolute value of thisBigDecimal.BigDecimalBigDecimal. add(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis+rhs.intBigDecimal. compareTo(BigDecimal rhs, MathContext set)Compares thisBigDecimalto another.BigDecimalBigDecimal. divide(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis/rhs.BigDecimalBigDecimal. divideInteger(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the integer part ofthis/rhs.BigDecimalBigDecimal. max(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the maximum ofthisandrhs.BigDecimalBigDecimal. min(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the minimum ofthisandrhs.BigDecimalBigDecimal. multiply(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis*rhs.BigDecimalBigDecimal. negate(MathContext set)Returns aBigDecimalwhose value is-this.BigDecimalBigDecimal. plus(MathContext set)Returns aBigDecimalwhose value is+this.BigDecimalBigDecimal. pow(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis**rhs.BigDecimalBigDecimal. remainder(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the remainder ofthis/rhs.BigDecimalBigDecimal. 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 MathContext Modifier and Type Method Description MathContextDecimalFormat. getMathContextICU()[icu] Returns theMathContextbeing used to round numbers.Methods in com.ibm.icu.text with parameters of type MathContext Modifier and Type Method Description voidDecimalFormat. setMathContextICU(MathContext mathContextICU)[icu] Rounding and Digit Limits: Overload ofDecimalFormat.setMathContext(java.math.MathContext)forMathContext.
-