Uses of Class
com.ibm.icu.math.BigDecimal
Packages that use BigDecimal
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.
International calendars and other utility classes.
-
Uses of BigDecimal in com.ibm.icu.math
Fields in com.ibm.icu.math declared as BigDecimalModifier and TypeFieldDescriptionstatic final BigDecimal
BigDecimal.ONE
TheBigDecimal
constant "1".static final BigDecimal
BigDecimal.TEN
TheBigDecimal
constant "10".static final BigDecimal
BigDecimal.ZERO
TheBigDecimal
constant "0".Methods in com.ibm.icu.math that return BigDecimalModifier and TypeMethodDescriptionBigDecimal.abs()
Returns a plainBigDecimal
whose value is the absolute value of thisBigDecimal
.BigDecimal.abs
(MathContext set) Returns aBigDecimal
whose value is the absolute value of thisBigDecimal
.BigDecimal.add
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis+rhs
, using fixed point arithmetic.BigDecimal.add
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis+rhs
.BigDecimal.divide
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic.BigDecimal.divide
(BigDecimal rhs, int round) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic and a rounding mode.BigDecimal.divide
(BigDecimal rhs, int scale, int round) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic and a given scale and rounding mode.BigDecimal.divide
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis/rhs
.BigDecimal.divideInteger
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the integer part ofthis/rhs
.BigDecimal.divideInteger
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the integer part ofthis/rhs
.BigDecimal.max
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the maximum ofthis
andrhs
.BigDecimal.max
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the maximum ofthis
andrhs
.BigDecimal.min
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the minimum ofthis
andrhs
.BigDecimal.min
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the minimum ofthis
andrhs
.BigDecimal.movePointLeft
(int n) Returns a plainBigDecimal
whose decimal point has been moved to the left by a specified number of positions.BigDecimal.movePointRight
(int n) Returns a plainBigDecimal
whose decimal point has been moved to the right by a specified number of positions.BigDecimal.multiply
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis*rhs
, using fixed point arithmetic.BigDecimal.multiply
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis*rhs
.BigDecimal.negate()
Returns a plainBigDecimal
whose value is-this
.BigDecimal.negate
(MathContext set) Returns aBigDecimal
whose value is-this
.BigDecimal.plus()
Returns a plainBigDecimal
whose value is+this
.BigDecimal.plus
(MathContext set) Returns aBigDecimal
whose value is+this
.BigDecimal.pow
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis**rhs
, using fixed point arithmetic.BigDecimal.pow
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis**rhs
.BigDecimal.remainder
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the remainder ofthis/rhs
, using fixed point arithmetic.BigDecimal.remainder
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the remainder ofthis/rhs
.BigDecimal.setScale
(int scale) Returns a plainBigDecimal
with a given scale.BigDecimal.setScale
(int scale, int round) Returns a plainBigDecimal
with a given scale.BigDecimal.subtract
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis-rhs
, using fixed point arithmetic.BigDecimal.subtract
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis-rhs
.static BigDecimal
BigDecimal.valueOf
(double dub) Translates adouble
to aBigDecimal
.static BigDecimal
BigDecimal.valueOf
(long lint) Translates along
to aBigDecimal
.static BigDecimal
BigDecimal.valueOf
(long lint, int scale) Translates along
to aBigDecimal
with a given scale.Methods in com.ibm.icu.math with parameters of type BigDecimalModifier and TypeMethodDescriptionBigDecimal.add
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis+rhs
, using fixed point arithmetic.BigDecimal.add
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis+rhs
.int
BigDecimal.compareTo
(BigDecimal rhs) Compares thisBigDecimal
to another, using unlimited precision.int
BigDecimal.compareTo
(BigDecimal rhs, MathContext set) Compares thisBigDecimal
to another.BigDecimal.divide
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic.BigDecimal.divide
(BigDecimal rhs, int round) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic and a rounding mode.BigDecimal.divide
(BigDecimal rhs, int scale, int round) Returns a plainBigDecimal
whose value isthis/rhs
, using fixed point arithmetic and a given scale and rounding mode.BigDecimal.divide
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis/rhs
.BigDecimal.divideInteger
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the integer part ofthis/rhs
.BigDecimal.divideInteger
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the integer part ofthis/rhs
.BigDecimal.max
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the maximum ofthis
andrhs
.BigDecimal.max
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the maximum ofthis
andrhs
.BigDecimal.min
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the minimum ofthis
andrhs
.BigDecimal.min
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the minimum ofthis
andrhs
.BigDecimal.multiply
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis*rhs
, using fixed point arithmetic.BigDecimal.multiply
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis*rhs
.BigDecimal.pow
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis**rhs
, using fixed point arithmetic.BigDecimal.pow
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis**rhs
.BigDecimal.remainder
(BigDecimal rhs) Returns a plainBigDecimal
whose value is the remainder ofthis/rhs
, using fixed point arithmetic.BigDecimal.remainder
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value is the remainder ofthis/rhs
.BigDecimal.subtract
(BigDecimal rhs) Returns a plainBigDecimal
whose value isthis-rhs
, using fixed point arithmetic.BigDecimal.subtract
(BigDecimal rhs, MathContext set) Returns aBigDecimal
whose value isthis-rhs
. -
Uses of BigDecimal in com.ibm.icu.text
Methods in com.ibm.icu.text with parameters of type BigDecimalModifier and TypeMethodDescriptionDecimalFormat.format
(BigDecimal number, StringBuffer result, FieldPosition fieldPosition) Formats an ICU BigDecimal.final String
NumberFormat.format
(BigDecimal number) Convenience method to format an ICU BigDecimal.abstract StringBuffer
NumberFormat.format
(BigDecimal number, StringBuffer toAppendTo, FieldPosition pos) Formats an ICU BigDecimal.RuleBasedNumberFormat.format
(BigDecimal number, StringBuffer toAppendTo, FieldPosition pos) NEW Implement com.ibm.icu.text.NumberFormat: Format a BigDecimal.void
DecimalFormat.setRoundingIncrement
(BigDecimal increment) 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 BigDecimalModifier and TypeMethodDescriptionstatic BigDecimal
UniversalTimeScale.bigDecimalFrom
(double otherTime, int timeScale) Convert adouble
datetime from the given time scale to the universal time scale.static BigDecimal
UniversalTimeScale.bigDecimalFrom
(long otherTime, int timeScale) Convert along
datetime from the given time scale to the universal time scale.static BigDecimal
UniversalTimeScale.bigDecimalFrom
(BigDecimal otherTime, int timeScale) Convert aBigDecimal
datetime from the given time scale to the universal time scale.static BigDecimal
UniversalTimeScale.toBigDecimal
(long universalTime, int timeScale) Convert a datetime from the universal time scale to aBigDecimal
in the given time scale.static BigDecimal
UniversalTimeScale.toBigDecimal
(BigDecimal universalTime, int timeScale) Convert a datetime from the universal time scale to aBigDecimal
in the given time scale.static BigDecimal
UniversalTimeScale.toBigDecimalTrunc
(BigDecimal universalTime, int timeScale) Deprecated.This API is ICU internal only.Methods in com.ibm.icu.util with parameters of type BigDecimalModifier and TypeMethodDescriptionstatic BigDecimal
UniversalTimeScale.bigDecimalFrom
(BigDecimal otherTime, int timeScale) Convert aBigDecimal
datetime from the given time scale to the universal time scale.static BigDecimal
UniversalTimeScale.toBigDecimal
(BigDecimal universalTime, int timeScale) Convert a datetime from the universal time scale to aBigDecimal
in the given time scale.static BigDecimal
UniversalTimeScale.toBigDecimalTrunc
(BigDecimal universalTime, int timeScale) Deprecated.This API is ICU internal only.