final class UnsignedDecimal9i36f extends Object
Pow
to calculate decimal powers.Modifier and Type | Field and Description |
---|---|
(package private) static ThreadLocal<UnsignedDecimal9i36f> |
THREAD_LOCAL_1
Thread local for factor 1
|
(package private) static ThreadLocal<UnsignedDecimal9i36f> |
THREAD_LOCAL_2
Thread local for accumulator
|
Modifier and Type | Method and Description |
---|---|
long |
getDecimal(int sgn,
DecimalArithmetic arith,
DecimalRounding rounding)
Returns the unscaled Decimal result resulting from exponentiation with a non-negative
exponent.
|
long |
getInverted(int sgn,
DecimalArithmetic arith,
DecimalRounding rounding,
DecimalRounding powRounding)
Returns the inverted result resulting from exponentiation with a negative
exponent.
|
int |
getPow10()
Returns the current power-ten exponent.
|
UnsignedDecimal9i36f |
init(long ival,
long fval,
ScaleMetrics scaleMetrics)
Assigns the given integer and fraction component to this unsigned 9x36
decimal and returns it.
|
UnsignedDecimal9i36f |
init(UnsignedDecimal9i36f copy)
Assigns the value one to this unsigned 9x36 decimal and returns it.
|
UnsignedDecimal9i36f |
initOne()
Assigns the value one to this unsigned 9x36 decimal and returns it.
|
void |
multiply(int sgn,
UnsignedDecimal9i36f factor,
DecimalRounding rounding)
Multiplies this unsigned 9x36 decimal value with another one.
|
String |
toString() |
static final ThreadLocal<UnsignedDecimal9i36f> THREAD_LOCAL_1
static final ThreadLocal<UnsignedDecimal9i36f> THREAD_LOCAL_2
public final UnsignedDecimal9i36f initOne()
public final UnsignedDecimal9i36f init(UnsignedDecimal9i36f copy)
copy
- the value to copypublic final UnsignedDecimal9i36f init(long ival, long fval, ScaleMetrics scaleMetrics)
ival
- the integer part of the value to assignfval
- the fractional part of the value to assignscaleMetrics
- the scale metrics associated with the valuepublic final int getPow10()
public final void multiply(int sgn, UnsignedDecimal9i36f factor, DecimalRounding rounding)
sgn
- the sign of the final resultfactor
- the factor to be multiplied withrounding
- the rounding to applypublic final long getInverted(int sgn, DecimalArithmetic arith, DecimalRounding rounding, DecimalRounding powRounding)
sgn
- the sign of the final resultarith
- the arithmetic of the base valuerounding
- the rounding to applypowRounding
- reciprocal rounding if exponent is negative and rounding
otherwisepublic final long getDecimal(int sgn, DecimalArithmetic arith, DecimalRounding rounding)
sgn
- the sign of the final resultarith
- the arithmetic of the base valuerounding
- the rounding to apply