| Modifier and Type | Method and Description |
|---|---|
static long |
divideByPowerOf10(DecimalRounding rounding,
long uDecimal,
int n)
Divides the given value by a power of 10 rounding the result if
necessary.
|
(package private) static long |
divideByPowerOf10(DecimalRounding rounding,
long uDecimalDividend,
ScaleMetrics dividendMetrics,
boolean pow10divisorIsPositive,
ScaleMetrics pow10divisorMetrics)
Divides the specified dividend by a power of ten rounding the result if
necessary.
|
static long |
divideByPowerOf10(long uDecimal,
int n)
Divides the given value by a power of 10 truncating the result if
necessary.
|
(package private) static long |
divideByPowerOf10(long uDecimalDividend,
ScaleMetrics dividendMetrics,
boolean pow10divisorIsPositive,
ScaleMetrics pow10divisorMetrics)
Divides the specified dividend by a power of ten truncating the result if
necessary.
|
static long |
divideByPowerOf10Checked(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal,
int n)
Divides the given value by a power of 10 rounding the result if
necessary.
|
(package private) static long |
divideByPowerOf10Checked(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimalDividend,
ScaleMetrics dividendMetrics,
boolean pow10divisorIsPositive,
ScaleMetrics pow10divisorMetrics)
Divides the specified dividend by a power of ten rounding the result if
necessary.
|
static long |
divideByPowerOf10Checked(DecimalArithmetic arith,
long uDecimal,
int n)
Divides the given value by a power of 10 truncating the result if
necessary.
|
(package private) static long |
divideByPowerOf10Checked(DecimalArithmetic arith,
long uDecimalDividend,
ScaleMetrics dividendMetrics,
boolean pow10divisorIsPositive,
ScaleMetrics pow10divisorMetrics)
Divides the specified dividend by a power of ten truncating the result if
necessary.
|
static long |
multiplyByPowerOf10(DecimalRounding rounding,
long uDecimal,
int n)
Calculates the multiple by a power of 10 rounding the result if necessary
for negative
n. |
static long |
multiplyByPowerOf10(long uDecimal,
int n)
Calculates the multiple by a power of 10 truncating the result if
necessary for negative
n. |
static long |
multiplyByPowerOf10Checked(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal,
int n)
Calculates the multiple by a power of 10 rounding the result if necessary
for negative
n. |
static long |
multiplyByPowerOf10Checked(DecimalArithmetic arith,
long uDecimal,
int n)
Calculates the multiple by a power of 10 truncating the result if
necessary for negative
n. |
public static final long multiplyByPowerOf10(long uDecimal, int n)
n. Overflows are silently truncated.uDecimal - the value to multiplyn - the power-ten exponentpublic static final long multiplyByPowerOf10(DecimalRounding rounding, long uDecimal, int n)
n. Overflows are silently truncated.rounding - the rounding to apply if necessaryuDecimal - the value to multiplyn - the power-ten exponentpublic static final long multiplyByPowerOf10Checked(DecimalArithmetic arith, long uDecimal, int n)
n. An exception is thrown if an overflow
occurs.arith - the arithmetic associated with the valueuDecimal - the value to multiplyn - the power-ten exponentArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exceptionpublic static final long multiplyByPowerOf10Checked(DecimalArithmetic arith, DecimalRounding rounding, long uDecimal, int n)
n. An exception is thrown if an overflow occurs.arith - the arithmetic associated with the valuerounding - the rounding to apply if necessaryuDecimal - the value to multiplyn - the power-ten exponentArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exceptionpublic static final long divideByPowerOf10(long uDecimal, int n)
uDecimal - the value to dividen - the power-ten exponentpublic static final long divideByPowerOf10(DecimalRounding rounding, long uDecimal, int n)
rounding - the rounding to apply if necessaryuDecimal - the value to dividen - the power-ten exponentpublic static final long divideByPowerOf10Checked(DecimalArithmetic arith, long uDecimal, int n)
arith - the arithmetic associated with the valueuDecimal - the value to dividen - the power-ten exponentArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exceptionpublic static final long divideByPowerOf10Checked(DecimalArithmetic arith, DecimalRounding rounding, long uDecimal, int n)
arith - the arithmetic associated with the valuerounding - the rounding to apply if necessaryuDecimal - the value to dividen - the power-ten exponentArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exceptionstatic final long divideByPowerOf10(long uDecimalDividend, ScaleMetrics dividendMetrics, boolean pow10divisorIsPositive, ScaleMetrics pow10divisorMetrics)
uDecimalDividend - the dividend to dividedividendMetrics - the arithmetics associated with the dividendpow10divisorIsPositive - true if the divisor is positivepow10divisorMetrics - the metrics reflecting the power-ten-divisionscale of the dividend and
scale10 is the exponent of the power-ten divisor (negated
if pow10divisorIsPositive==false)static final long divideByPowerOf10(DecimalRounding rounding, long uDecimalDividend, ScaleMetrics dividendMetrics, boolean pow10divisorIsPositive, ScaleMetrics pow10divisorMetrics)
rounding - the rounding to apply if rounding is necessaryuDecimalDividend - the dividend to dividedividendMetrics - the arithmetics associated with the dividendpow10divisorIsPositive - true if the divisor is positivepow10divisorMetrics - the metrics reflecting the power-ten-divisionscale of the dividend and
scale10 is the exponent of the power-ten divisor (negated
if pow10divisorIsPositive==false)static final long divideByPowerOf10Checked(DecimalArithmetic arith, long uDecimalDividend, ScaleMetrics dividendMetrics, boolean pow10divisorIsPositive, ScaleMetrics pow10divisorMetrics)
arith - the arithmetic associated with the dividend valueuDecimalDividend - the dividend to dividedividendMetrics - the arithmetics associated with the dividendpow10divisorIsPositive - true if the divisor is positivepow10divisorMetrics - the metrics reflecting the power-ten-divisionscale of the dividend and
scale10 is the exponent of the power-ten divisor (negated
if pow10divisorIsPositive==false)ArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exceptionstatic final long divideByPowerOf10Checked(DecimalArithmetic arith, DecimalRounding rounding, long uDecimalDividend, ScaleMetrics dividendMetrics, boolean pow10divisorIsPositive, ScaleMetrics pow10divisorMetrics)
arith - the arithmetic associated with the dividend valuerounding - the rounding to apply if rounding is necessaryuDecimalDividend - the dividend to dividedividendMetrics - the arithmetics associated with the dividendpow10divisorIsPositive - true if the divisor is positivepow10divisorMetrics - the metrics reflecting the power-ten-divisionscale of the dividend and
scale10 is the exponent of the power-ten divisor (negated
if pow10divisorIsPositive==false)ArithmeticException - if an overflow occurs and the arithmetic's
OverflowMode is set to throw an exception