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 MathContextMathContext.DEFAULTAMathContextobject initialized to the default settings for general-purpose arithmetic.private static final MathContextBigDecimal.plainMCMethods 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.private BigDecimalBigDecimal.dodivide(char code, BigDecimal rhs, MathContext set, int scale) private BigDecimalBigDecimal.finish(MathContext set, boolean strip) 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.private BigDecimalBigDecimal.round(MathContext set) 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.