Uses of Class
com.ibm.icu.math.BigDecimal
-
Packages that use BigDecimal 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.com.ibm.icu.util International calendars and other utility classes. -
-
Uses of BigDecimal in com.ibm.icu.math
Fields in com.ibm.icu.math declared as BigDecimal Modifier and Type Field Description static BigDecimalBigDecimal. ONETheBigDecimalconstant "1".static BigDecimalBigDecimal. TENTheBigDecimalconstant "10".static BigDecimalBigDecimal. ZEROTheBigDecimalconstant "0".Methods in com.ibm.icu.math that return BigDecimal Modifier and Type Method Description BigDecimalBigDecimal. abs()Returns a plainBigDecimalwhose value is the absolute value of thisBigDecimal.BigDecimalBigDecimal. abs(MathContext set)Returns aBigDecimalwhose value is the absolute value of thisBigDecimal.BigDecimalBigDecimal. add(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis+rhs, using fixed point arithmetic.BigDecimalBigDecimal. add(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis+rhs.BigDecimalBigDecimal. divide(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic.BigDecimalBigDecimal. divide(BigDecimal rhs, int round)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic and a rounding mode.BigDecimalBigDecimal. divide(BigDecimal rhs, int scale, int round)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic and a given scale and rounding mode.BigDecimalBigDecimal. divide(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis/rhs.BigDecimalBigDecimal. divideInteger(BigDecimal rhs)Returns a plainBigDecimalwhose value is the integer part ofthis/rhs.BigDecimalBigDecimal. divideInteger(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the integer part ofthis/rhs.BigDecimalBigDecimal. max(BigDecimal rhs)Returns a plainBigDecimalwhose value is the maximum ofthisandrhs.BigDecimalBigDecimal. max(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the maximum ofthisandrhs.BigDecimalBigDecimal. min(BigDecimal rhs)Returns a plainBigDecimalwhose value is the minimum ofthisandrhs.BigDecimalBigDecimal. min(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the minimum ofthisandrhs.BigDecimalBigDecimal. movePointLeft(int n)Returns a plainBigDecimalwhose decimal point has been moved to the left by a specified number of positions.BigDecimalBigDecimal. movePointRight(int n)Returns a plainBigDecimalwhose decimal point has been moved to the right by a specified number of positions.BigDecimalBigDecimal. multiply(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis*rhs, using fixed point arithmetic.BigDecimalBigDecimal. multiply(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis*rhs.BigDecimalBigDecimal. negate()Returns a plainBigDecimalwhose value is-this.BigDecimalBigDecimal. negate(MathContext set)Returns aBigDecimalwhose value is-this.BigDecimalBigDecimal. plus()Returns a plainBigDecimalwhose value is+this.BigDecimalBigDecimal. plus(MathContext set)Returns aBigDecimalwhose value is+this.BigDecimalBigDecimal. pow(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis**rhs, using fixed point arithmetic.BigDecimalBigDecimal. pow(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis**rhs.BigDecimalBigDecimal. remainder(BigDecimal rhs)Returns a plainBigDecimalwhose value is the remainder ofthis/rhs, using fixed point arithmetic.BigDecimalBigDecimal. remainder(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the remainder ofthis/rhs.BigDecimalBigDecimal. setScale(int scale)Returns a plainBigDecimalwith a given scale.BigDecimalBigDecimal. setScale(int scale, int round)Returns a plainBigDecimalwith a given scale.BigDecimalBigDecimal. subtract(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis-rhs, using fixed point arithmetic.BigDecimalBigDecimal. subtract(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis-rhs.static BigDecimalBigDecimal. valueOf(double dub)Translates adoubleto aBigDecimal.static BigDecimalBigDecimal. valueOf(long lint)Translates alongto aBigDecimal.static BigDecimalBigDecimal. valueOf(long lint, int scale)Translates alongto aBigDecimalwith a given scale.Methods in com.ibm.icu.math with parameters of type BigDecimal Modifier and Type Method Description BigDecimalBigDecimal. add(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis+rhs, using fixed point arithmetic.BigDecimalBigDecimal. add(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis+rhs.intBigDecimal. compareTo(BigDecimal rhs)Compares thisBigDecimalto another, using unlimited precision.intBigDecimal. compareTo(BigDecimal rhs, MathContext set)Compares thisBigDecimalto another.BigDecimalBigDecimal. divide(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic.BigDecimalBigDecimal. divide(BigDecimal rhs, int round)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic and a rounding mode.BigDecimalBigDecimal. divide(BigDecimal rhs, int scale, int round)Returns a plainBigDecimalwhose value isthis/rhs, using fixed point arithmetic and a given scale and rounding mode.BigDecimalBigDecimal. divide(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis/rhs.BigDecimalBigDecimal. divideInteger(BigDecimal rhs)Returns a plainBigDecimalwhose value is the integer part ofthis/rhs.BigDecimalBigDecimal. divideInteger(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the integer part ofthis/rhs.BigDecimalBigDecimal. max(BigDecimal rhs)Returns a plainBigDecimalwhose value is the maximum ofthisandrhs.BigDecimalBigDecimal. max(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the maximum ofthisandrhs.BigDecimalBigDecimal. min(BigDecimal rhs)Returns a plainBigDecimalwhose value is the minimum ofthisandrhs.BigDecimalBigDecimal. min(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the minimum ofthisandrhs.BigDecimalBigDecimal. multiply(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis*rhs, using fixed point arithmetic.BigDecimalBigDecimal. multiply(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis*rhs.BigDecimalBigDecimal. pow(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis**rhs, using fixed point arithmetic.BigDecimalBigDecimal. pow(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis**rhs.BigDecimalBigDecimal. remainder(BigDecimal rhs)Returns a plainBigDecimalwhose value is the remainder ofthis/rhs, using fixed point arithmetic.BigDecimalBigDecimal. remainder(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value is the remainder ofthis/rhs.BigDecimalBigDecimal. subtract(BigDecimal rhs)Returns a plainBigDecimalwhose value isthis-rhs, using fixed point arithmetic.BigDecimalBigDecimal. subtract(BigDecimal rhs, MathContext set)Returns aBigDecimalwhose value isthis-rhs. -
Uses of BigDecimal in com.ibm.icu.text
Methods in com.ibm.icu.text with parameters of type BigDecimal Modifier and Type Method Description StringBufferDecimalFormat. format(BigDecimal number, StringBuffer result, FieldPosition fieldPosition)[icu] Formats an ICU BigDecimal.StringNumberFormat. format(BigDecimal number)[icu] Convenience method to format an ICU BigDecimal.abstract StringBufferNumberFormat. format(BigDecimal number, StringBuffer toAppendTo, FieldPosition pos)[icu] Formats an ICU BigDecimal.StringBufferRuleBasedNumberFormat. format(BigDecimal number, StringBuffer toAppendTo, FieldPosition pos)NEW Implement com.ibm.icu.text.NumberFormat: Format a BigDecimal.voidDecimalFormat. setRoundingIncrement(BigDecimal increment)[icu] Rounding and Digit Limits: Overload ofDecimalFormat.setRoundingIncrement(java.math.BigDecimal). -
Uses of BigDecimal in com.ibm.icu.util
Methods in com.ibm.icu.util that return BigDecimal Modifier and Type Method Description static BigDecimalUniversalTimeScale. bigDecimalFrom(double otherTime, int timeScale)Convert adoubledatetime from the given time scale to the universal time scale.static BigDecimalUniversalTimeScale. bigDecimalFrom(long otherTime, int timeScale)Convert alongdatetime from the given time scale to the universal time scale.static BigDecimalUniversalTimeScale. bigDecimalFrom(BigDecimal otherTime, int timeScale)Convert aBigDecimaldatetime from the given time scale to the universal time scale.static BigDecimalUniversalTimeScale. toBigDecimal(long universalTime, int timeScale)Convert a datetime from the universal time scale to aBigDecimalin the given time scale.static BigDecimalUniversalTimeScale. toBigDecimal(BigDecimal universalTime, int timeScale)Convert a datetime from the universal time scale to aBigDecimalin the given time scale.static BigDecimalUniversalTimeScale. toBigDecimalTrunc(BigDecimal universalTime, int timeScale)Deprecated.This API is ICU internal only.Methods in com.ibm.icu.util with parameters of type BigDecimal Modifier and Type Method Description static BigDecimalUniversalTimeScale. bigDecimalFrom(BigDecimal otherTime, int timeScale)Convert aBigDecimaldatetime from the given time scale to the universal time scale.static BigDecimalUniversalTimeScale. toBigDecimal(BigDecimal universalTime, int timeScale)Convert a datetime from the universal time scale to aBigDecimalin the given time scale.static BigDecimalUniversalTimeScale. toBigDecimalTrunc(BigDecimal universalTime, int timeScale)Deprecated.This API is ICU internal only.
-