DecimalArithmetic
implementations
for different rounding and overflow modes.See: Description
Class | Description |
---|---|
AbstractArithmetic |
Base class for all arithmetic implementations providing operations which are
common irrespective of
scale , rounding mode and overflow mode . |
AbstractCheckedArithmetic |
Base class for arithmetic implementations with
CHECKED overflow mode. |
AbstractCheckedScale0fArithmetic |
Base class for arithmetic implementations with overflow check for the special
case with
Scale0f , that is, for longs. |
AbstractCheckedScaleNfArithmetic |
Base class for arithmetic implementations with overflow check for scales
other than zero.
|
AbstractUncheckedArithmetic |
Base class for arithmetic implementations with
UNCHECKED overflow mode. |
AbstractUncheckedScale0fArithmetic |
Base class for arithmetic implementations without overflow check for the special
case with
Scale0f , that is, for longs. |
AbstractUncheckedScaleNfArithmetic |
Base class for arithmetic implementations without overflow check for scales
other than zero
|
Add |
Provides static methods to calculate additions.
|
Avg |
Provides static methods to calculate average of two numbers, that is,
(a+b)/2 . |
BigDecimalConversion |
Contains methods to convert from and to
BigDecimal . |
BigIntegerConversion |
Contains methods to convert from and to
BigInteger . |
Checked |
Helper class for arithmetic operations with overflow checks.
|
CheckedScale0fRoundingArithmetic |
Arithmetic implementation with rounding and overflow check for the special
case with
Scale0f , that is, for longs. |
CheckedScale0fTruncatingArithmetic |
Arithmetic implementation without rounding but with overflow check for the
special case with
Scale0f , that is, for longs. |
CheckedScaleNfRoundingArithmetic |
Arithmetic implementation with rounding and overflow check for scales other
than zero.
|
CheckedScaleNfTruncatingArithmetic |
Arithmetic implementation without rounding but with overflow check for scales
other than zero.
|
Compare |
Contains static methods to compare unscaled decimals of different scales.
|
Div |
Provides static methods to calculate division results.
|
DoubleConversion |
Contains methods to convert from and to double.
|
Exceptions |
Utility for exception conversion and re-throwing.
|
FloatConversion |
Contains methods to convert from and to float.
|
Invert |
Provides static methods to invert a Decimal number, that is, to calculate
1/x . |
JDKSupport |
Provides ports of methods that are available in JDK 1.8 to make code run in
earlier JDK's.
|
LongConversion |
Contains methods to convert from and to long.
|
Mul |
Provides methods to calculate multiplication results.
|
Pow |
Contains static methods to calculate powers of a Decimal number.
|
Pow10 |
Contains methods for multiplications and divisions with powers of ten.
|
Round |
Contains static helper methods to round Decimal values.
|
Rounding |
Utility class to calculate rounding increments in different situations;
utilizes functionality provided by
DecimalRounding and
TruncatedPart . |
Shift |
Provides methods for left and right shifts.
|
Sqrt |
Provides static methods to calculate square roots of Decimal numbers.
|
Square |
Provides methods to calculate squares.
|
StringConversion |
Contains methods to convert from and to String.
|
Sub |
Provides static methods to calculate subtractions.
|
ThreadLocals |
Helper class to remove all values held by
ThreadLocal variables. |
UncheckedScale0fRoundingArithmetic |
Arithmetic implementation with rounding for the special case with
Scale0f , that is, for longs. |
UncheckedScale0fTruncatingArithmetic |
Arithmetic implementation without rounding for the special case with
Scale0f , that is, for longs. |
UncheckedScaleNfRoundingArithmetic |
Arithmetic implementation with rounding for scales other than zero.
|
UncheckedScaleNfTruncatingArithmetic |
Arithmetic implementation without rounding for scales other than zero.
|
UnscaledConversion |
Contains static methods to convert between different scales.
|
Unsigned |
Helper class to emulate unsigned 64bit operations.
|
UnsignedDecimal9i36f |
Helper class for an unsigned decimal value with 9 integral digits and 38 decimal
fraction digits used internally by
Pow to calculate decimal powers. |
Enum | Description |
---|---|
RoundingInverse |
Defines different inverses of a
DecimalRounding . |
SpecialDivisionResult |
Helper class used by division and inversion methods to handle special cases.
|
SpecialMultiplicationResult |
Helper class used by multiplication methods to handle special cases.
|
SpecialPowResult |
Helper class used by pow methods to handle special cases.
|
DecimalArithmetic
implementations
for different rounding and overflow modes.