| Modifier and Type | Method and Description |
|---|---|
static long |
invert(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal)
Inverts the specified unscaled decimal value rounding the result if
necessary.
|
static long |
invert(DecimalArithmetic arith,
long uDecimal)
Inverts the specified unscaled decimal value truncating the result if
necessary.
|
static long |
invertLong(DecimalRounding rounding,
long lValue)
Inverts the specified long value rounding the result if necessary.
|
static long |
invertLong(long lValue)
Inverts the specified long value truncating the result if necessary.
|
public static final long invertLong(long lValue)
lValue - the long value to invertArithmeticException - if lValue == 0public static final long invertLong(DecimalRounding rounding, long lValue)
rounding - the rounding to apply if necessarylValue - the long value to invertArithmeticException - if lValue == 0 or if
roundingMode==UNNECESSARY and rounding is necessarypublic static final long invert(DecimalArithmetic arith, long uDecimal)
arith - the arithmetic associated with the given valueuDecimal - the unscaled decimal value to invertArithmeticException - if uDecimalDividend is zero or if an overflow occurs
and the arithmetics OverflowMode is set to throw an
exceptionDecimalArithmetic.divide(long, long)public static final long invert(DecimalArithmetic arith, DecimalRounding rounding, long uDecimal)
arith - the arithmetic associated with the given valuerounding - the rounding to apply if necessaryuDecimal - the unscaled decimal value to invertArithmeticException - if uDecimalDividend is zero, if roundingMode
is UNNECESSARY and rounding is necessary or if an overflow
occurs and the arithmetics OverflowMode is set to
throw an exceptionDecimalArithmetic.divide(long, long)