public final class Decimal3f extends AbstractImmutableDecimal<Scale3f,Decimal3f>
All methods for this class throw NullPointerException when passed a
null object reference for any input parameter.
| Modifier and Type | Field and Description |
|---|---|
static Decimal3f |
BILLION
The
Decimal3f constant 109. |
static DecimalArithmetic |
DEFAULT_ARITHMETIC
Default arithmetic for
Decimal3f performing unchecked operations with rounding mode
HALF_UP. |
static DecimalArithmetic |
DEFAULT_CHECKED_ARITHMETIC
Default arithmetic for
Decimal3f performing checked operations with rounding mode
HALF_UP. |
static Decimal3f |
EIGHT
The
Decimal3f constant 8. |
static Factory3f |
FACTORY
Factory constant for
Decimal3f returned by getFactory(). |
static Decimal3f |
FIVE
The
Decimal3f constant 5. |
static Decimal3f |
FOUR
The
Decimal3f constant 4. |
static Decimal3f |
HALF
The
Decimal3f constant 0.5. |
static Decimal3f |
HUNDRED
The
Decimal3f constant 100. |
static Decimal3f |
HUNDREDTH
The
Decimal3f constant 0.01. |
static Decimal3f |
MAX_INTEGER_VALUE
A constant holding the maximum integer value a
Decimal3f
can have, 9223372036854775.000. |
static Decimal3f |
MAX_VALUE
A constant holding the maximum value a
Decimal3f can have,
9223372036854775.807. |
static Scale3f |
METRICS
Scale metrics constant for
Decimal3f returned by getScaleMetrics(). |
static Decimal3f |
MILLION
The
Decimal3f constant 106. |
static Decimal3f |
MIN_INTEGER_VALUE
A constant holding the minimum integer value a
Decimal3f
can have, -9223372036854775.000. |
static Decimal3f |
MIN_VALUE
A constant holding the minimum value a
Decimal3f can have,
-9223372036854775.808. |
static Decimal3f |
MINUS_ONE
The
Decimal3f constant -1. |
static Decimal3f |
NINE
The
Decimal3f constant 9. |
static Decimal3f |
ONE
The
Decimal3f constant 1. |
static long |
ONE_UNSCALED
The unscaled long value that represents one.
|
static Decimal3f |
QUADRILLION
The
Decimal3f constant 1015. |
static int |
SCALE
Scale value 3 for
Decimal3f returned by getScale(). |
static Decimal3f |
SEVEN
The
Decimal3f constant 7. |
static Decimal3f |
SIX
The
Decimal3f constant 6. |
static Decimal3f |
TEN
The
Decimal3f constant 10. |
static Decimal3f |
TENTH
The
Decimal3f constant 0.1. |
static Decimal3f |
THOUSAND
The
Decimal3f constant 1000. |
static Decimal3f |
THOUSANDTH
The
Decimal3f constant 0.001. |
static Decimal3f |
THREE
The
Decimal3f constant 3. |
static Decimal3f |
TRILLION
The
Decimal3f constant 1012. |
static Decimal3f |
TWO
The
Decimal3f constant 2. |
static Decimal3f |
ULP
A constant holding the smallest positive value a
Decimal3f
can have, 10-3. |
static Decimal3f |
ZERO
The
Decimal3f constant zero. |
| Constructor and Description |
|---|
Decimal3f(String value)
Translates the string representation of a
Decimal into a
Decimal3f. |
| Modifier and Type | Method and Description |
|---|---|
protected Decimal3f |
create(long unscaled)
Returns a new
Decimal whose value is
(unscaled × 10-scale). |
protected Decimal3f[] |
createArray(int length)
Returns a new
Decimal array of the specified length. |
protected Decimal3f |
createOrAssign(long unscaled)
Returns this or a new
Decimal whose value is
(unscaled × 10-scale). |
protected DecimalArithmetic |
getDefaultArithmetic()
Returns the default arithmetic performing unchecked operations with
rounding mode
HALF_UP. |
protected DecimalArithmetic |
getDefaultCheckedArithmetic()
Returns the default arithmetic performing checked operations with
rounding mode
HALF_UP. |
Factory3f |
getFactory()
Returns the factory that can be used to create other Decimal values of the same scale as
this Decimal. |
protected DecimalArithmetic |
getRoundingDownArithmetic()
Returns the arithmetic performing unchecked operations with rounding mode
DOWN. |
protected DecimalArithmetic |
getRoundingFloorArithmetic()
Returns the arithmetic performing unchecked operations with rounding mode
FLOOR. |
protected DecimalArithmetic |
getRoundingHalfEvenArithmetic()
Returns the arithmetic performing unchecked operations with rounding mode
HALF_EVEN. |
protected DecimalArithmetic |
getRoundingUnnecessaryArithmetic()
Returns the arithmetic performing unchecked operations with rounding mode
UNNECESSARY. |
int |
getScale()
Returns the scale associated with this Decimal.
|
Scale3f |
getScaleMetrics()
Returns the metrics associated with the scale of this Decimal.
|
Multipliable3f |
multiplyExact()
Returns this
Decimal as a multipliable factor for typed
exact multiplication. |
protected Decimal3f |
self()
Returns
this decimal value as concrete implementation subtype. |
Decimal3f |
toImmutableDecimal()
If this
Decimal value is already an ImmutableDecimal it is simply returned. |
MutableDecimal3f |
toMutableDecimal()
If this
Decimal value is already a MutableDecimal it is simply returned. |
static Decimal3f |
valueOf(BigDecimal value)
Returns a
Decimal3f whose value is calculated by rounding
the specified BigDecimal argument to scale 3 using
HALF_UP rounding. |
static Decimal3f |
valueOf(BigDecimal value,
RoundingMode roundingMode)
Returns a
Decimal3f whose value is calculated by rounding
the specified BigDecimal argument to scale 3 using
the specified roundingMode. |
static Decimal3f |
valueOf(BigInteger value)
Returns a
Decimal3f whose value is numerically equal to that of
the specified BigInteger value. |
static Decimal3f |
valueOf(Decimal<?> value)
|
static Decimal3f |
valueOf(Decimal<?> value,
RoundingMode roundingMode)
Returns a
Decimal3f whose value is calculated by rounding
the specified Decimal argument to scale 3 using
the specified roundingMode. |
static Decimal3f |
valueOf(double value)
Returns a
Decimal3f whose value is calculated by
rounding the specified double argument to scale 3
using HALF_UP rounding. |
static Decimal3f |
valueOf(double value,
RoundingMode roundingMode)
Returns a
Decimal3f whose value is calculated by
rounding the specified double argument to scale 3
using the specified roundingMode. |
static Decimal3f |
valueOf(float value)
Returns a
Decimal3f whose value is calculated by
rounding the specified float argument to scale 3
using HALF_UP rounding. |
static Decimal3f |
valueOf(float value,
RoundingMode roundingMode)
Returns a
Decimal3f whose value is calculated by
rounding the specified float argument to scale 3
using the specified roundingMode. |
static Decimal3f |
valueOf(long value)
Returns a
Decimal3f whose value is numerically equal to
that of the specified long value. |
static Decimal3f |
valueOf(String value)
Translates the string representation of a
Decimal into a
Decimal3f. |
static Decimal3f |
valueOf(String value,
RoundingMode roundingMode)
Translates the string representation of a
Decimal into a
Decimal3f. |
static Decimal3f |
valueOfUnscaled(long unscaledValue)
Returns a
Decimal3f whose value is numerically equal to
(unscaledValue × 10-3). |
static Decimal3f |
valueOfUnscaled(long unscaledValue,
int scale)
Returns a
Decimal3f whose value is numerically equal to
(unscaledValue × 10-scale). |
static Decimal3f |
valueOfUnscaled(long unscaledValue,
int scale,
RoundingMode roundingMode)
Returns a
Decimal3f whose value is numerically equal to
(unscaledValue × 10-scale). |
max, min, multiplyExact, scale, scale, scale, scale, toString, unscaledValueabs, abs, add, add, add, add, add, add, add, add, addSquared, addSquared, addSquared, addUnscaled, addUnscaled, addUnscaled, addUnscaled, addUnscaled, avg, avg, byteValueExact, compareTo, compareToNumerically, divide, divide, divide, divide, divide, divide, divide, divide, divideAndRemainder, divideAndRemainder, divideBy, divideBy, divideBy, divideByPowerOfTen, divideByPowerOfTen, divideByPowerOfTen, divideExact, divideToIntegralValue, divideToIntegralValue, divideToLongValue, divideToLongValue, divideTruncate, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, doubleValue, doubleValue, equals, floatValue, floatValue, fractionalPart, getArithmeticFor, getArithmeticFor, getArithmeticFor, getCheckedArithmeticFor, hashCode, integralPart, intValue, intValueExact, invert, invert, invert, isBetweenZeroAndMinusOne, isBetweenZeroAndOne, isEqualTo, isEqualToNumerically, isGreaterThan, isGreaterThanOrEqualTo, isIntegral, isIntegralPartZero, isLessThan, isLessThanOrEqualTo, isMinusOne, isNegative, isNonNegative, isNonPositive, isOne, isPositive, isUlp, isZero, longValue, longValue, longValueExact, max, max, min, min, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiplyBy, multiplyBy, multiplyBy, multiplyByPowerOfTen, multiplyByPowerOfTen, multiplyByPowerOfTen, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, negate, negate, pow, pow, pow, remainder, round, round, round, shiftLeft, shiftLeft, shiftLeft, shiftRight, shiftRight, shiftRight, shortValueExact, signum, sqrt, sqrt, square, square, square, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtractSquared, subtractSquared, subtractSquared, subtractUnscaled, subtractUnscaled, subtractUnscaled, subtractUnscaled, subtractUnscaled, toBigDecimal, toBigDecimal, toBigInteger, toBigInteger, toBigIntegerExactbyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitabs, abs, add, add, add, add, add, add, add, add, addSquared, addSquared, addSquared, addUnscaled, addUnscaled, addUnscaled, addUnscaled, addUnscaled, avg, avg, divide, divide, divide, divide, divide, divide, divide, divide, divideAndRemainder, divideAndRemainder, divideBy, divideBy, divideBy, divideByPowerOfTen, divideByPowerOfTen, divideByPowerOfTen, divideExact, divideToIntegralValue, divideToIntegralValue, divideTruncate, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, divideUnscaled, fractionalPart, integralPart, invert, invert, invert, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiplyBy, multiplyBy, multiplyBy, multiplyByPowerOfTen, multiplyByPowerOfTen, multiplyByPowerOfTen, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, multiplyUnscaled, negate, negate, pow, pow, pow, remainder, round, round, round, shiftLeft, shiftLeft, shiftLeft, shiftRight, shiftRight, shiftRight, sqrt, sqrt, square, square, square, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtractSquared, subtractSquared, subtractSquared, subtractUnscaled, subtractUnscaled, subtractUnscaled, subtractUnscaled, subtractUnscaledbyteValue, byteValueExact, compareTo, compareToNumerically, divideToLongValue, divideToLongValue, doubleValue, doubleValue, equals, floatValue, floatValue, hashCode, intValue, intValueExact, isBetweenZeroAndMinusOne, isBetweenZeroAndOne, isEqualTo, isEqualToNumerically, isGreaterThan, isGreaterThanOrEqualTo, isIntegral, isIntegralPartZero, isLessThan, isLessThanOrEqualTo, isMinusOne, isNegative, isNonNegative, isNonPositive, isOne, isPositive, isUlp, isZero, longValue, longValue, longValueExact, max, min, shortValue, shortValueExact, signum, toBigDecimal, toBigDecimal, toBigInteger, toBigInteger, toBigIntegerExactpublic static final int SCALE
Decimal3f returned by getScale().public static final Scale3f METRICS
Decimal3f returned by getScaleMetrics().public static final Factory3f FACTORY
Decimal3f returned by getFactory().public static final DecimalArithmetic DEFAULT_ARITHMETIC
Decimal3f performing unchecked operations with rounding mode
HALF_UP.public static final DecimalArithmetic DEFAULT_CHECKED_ARITHMETIC
Decimal3f performing checked operations with rounding mode
HALF_UP.public static final long ONE_UNSCALED
public static final Decimal3f ULP
Decimal3f
can have, 10-3.public static final Decimal3f QUADRILLION
Decimal3f constant 1015.public static final Decimal3f THOUSANDTH
Decimal3f constant 0.001.public static final Decimal3f MAX_VALUE
Decimal3f can have,
9223372036854775.807.public static final Decimal3f MAX_INTEGER_VALUE
Decimal3f
can have, 9223372036854775.000.public static final Decimal3f MIN_VALUE
Decimal3f can have,
-9223372036854775.808.public static final Decimal3f MIN_INTEGER_VALUE
Decimal3f
can have, -9223372036854775.000.public Decimal3f(String value)
Decimal into a
Decimal3f. The string representation consists of an
optional sign, '+' or '-' , followed by a sequence of
zero or more decimal digits ("the integer"), optionally followed by a
fraction.
The fraction consists of a decimal point followed by zero or more decimal
digits. The string must contain at least one digit in either the integer
or the fraction. If the fraction contains more than 3 digits, the
value is rounded using HALF_UP rounding. An
exception is thrown if the value is too large to be represented as a
Decimal3f.
value - String value to convert into a Decimal3fNumberFormatException - if value does not represent a valid Decimal
or if the value is too large to be represented as a
Decimal3fpublic final Scale3f getScaleMetrics()
Decimallong value underlying this Decimal.ScaleMetrics.getScale(),
ScaleMetrics.getScaleFactor()public final int getScale()
Decimallong value underlying this Decimal.
If the scale is f then the value represented by a Decimal instance is
(unscaledValue × 10-f).
This method is a shortcut for getScaleMetrics().getScale().
Decimal.getScaleMetrics(),
ScaleMetrics.getScale(),
Decimal.unscaledValue()public final Factory3f getFactory()
Decimalthis Decimal.protected final Decimal3f self()
AbstractDecimalthis decimal value as concrete implementation subtype.self in class AbstractDecimal<Scale3f,Decimal3f>thisprotected final DecimalArithmetic getDefaultArithmetic()
AbstractDecimalHALF_UP.getDefaultArithmetic in class AbstractDecimal<Scale3f,Decimal3f>HALF_UP
rounding and UNCHECKED overflow
modeprotected final DecimalArithmetic getDefaultCheckedArithmetic()
AbstractDecimalHALF_UP.getDefaultCheckedArithmetic in class AbstractDecimal<Scale3f,Decimal3f>HALF_UP
rounding and CHECKED overflow modeprotected final DecimalArithmetic getRoundingDownArithmetic()
AbstractDecimalDOWN.getRoundingDownArithmetic in class AbstractDecimal<Scale3f,Decimal3f>DOWN rounding and
UNCHECKED overflow modeprotected final DecimalArithmetic getRoundingFloorArithmetic()
AbstractDecimalFLOOR.getRoundingFloorArithmetic in class AbstractDecimal<Scale3f,Decimal3f>FLOOR rounding and
UNCHECKED overflow modeprotected final DecimalArithmetic getRoundingHalfEvenArithmetic()
AbstractDecimalHALF_EVEN.getRoundingHalfEvenArithmetic in class AbstractDecimal<Scale3f,Decimal3f>HALF_UP rounding and
UNCHECKED overflow modeprotected final DecimalArithmetic getRoundingUnnecessaryArithmetic()
AbstractDecimalUNNECESSARY.getRoundingUnnecessaryArithmetic in class AbstractDecimal<Scale3f,Decimal3f>UNNECESSARY
rounding and UNCHECKED overflow
modepublic static Decimal3f valueOf(long value)
Decimal3f whose value is numerically equal to
that of the specified long value. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - long value to convert into a Decimal3fDecimal3f value numerically equal to the specified
long valueIllegalArgumentException - if value is too large to be represented as a
Decimal3fpublic static Decimal3f valueOf(float value)
Decimal3f whose value is calculated by
rounding the specified float argument to scale 3
using HALF_UP rounding. An exception is thrown
if the specified value is too large to be represented as a Decimal3f.value - float value to convert into a Decimal3fDecimal3f calculated as: roundHALF_UP(value)IllegalArgumentException - if value is NaN or infinite or if the magnitude is
too large for the float to be represented as a Decimal3fpublic static Decimal3f valueOf(float value, RoundingMode roundingMode)
Decimal3f whose value is calculated by
rounding the specified float argument to scale 3
using the specified roundingMode. An exception is thrown
if the specified value is too large to be represented as a Decimal3f.value - float value to convert into a Decimal3froundingMode - the rounding mode to apply during the conversion if necessaryDecimal3f calculated as: round(value)IllegalArgumentException - if value is NaN or infinite or if the magnitude is
too large for the float to be represented as a Decimal3fArithmeticException - if roundingMode==UNNECESSARY and rounding is
necessarypublic static Decimal3f valueOf(double value)
Decimal3f whose value is calculated by
rounding the specified double argument to scale 3
using HALF_UP rounding. An exception is thrown
if the specified value is too large to be represented as a Decimal3f.value - double value to convert into a Decimal3fDecimal3f calculated as: roundHALF_UP(value)IllegalArgumentException - if value is NaN or infinite or if the magnitude is
too large for the double to be represented as a Decimal3fpublic static Decimal3f valueOf(double value, RoundingMode roundingMode)
Decimal3f whose value is calculated by
rounding the specified double argument to scale 3
using the specified roundingMode. An exception is thrown
if the specified value is too large to be represented as a Decimal3f.value - double value to convert into a Decimal3froundingMode - the rounding mode to apply during the conversion if necessaryDecimal3f calculated as: round(value)IllegalArgumentException - if value is NaN or infinite or if the magnitude is
too large for the double to be represented as a Decimal3fArithmeticException - if roundingMode==UNNECESSARY and rounding is
necessarypublic static Decimal3f valueOf(BigInteger value)
Decimal3f whose value is numerically equal to that of
the specified BigInteger value. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - BigInteger value to convert into a Decimal3fDecimal3f value numerically equal to the specified big
integer valueIllegalArgumentException - if value is too large to be represented as a Decimal3fpublic static Decimal3f valueOf(BigDecimal value)
Decimal3f whose value is calculated by rounding
the specified BigDecimal argument to scale 3 using
HALF_UP rounding. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - BigDecimal value to convert into a Decimal3fDecimal3f calculated as: roundHALF_UP(value)IllegalArgumentException - if value is too large to be represented as a Decimal3fpublic static Decimal3f valueOf(BigDecimal value, RoundingMode roundingMode)
Decimal3f whose value is calculated by rounding
the specified BigDecimal argument to scale 3 using
the specified roundingMode. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - BigDecimal value to convert into a Decimal3froundingMode - the rounding mode to apply during the conversion if necessaryDecimal3f calculated as: round(value)IllegalArgumentException - if value is too large to be represented as a Decimal3fArithmeticException - if roundingMode==UNNECESSARY and rounding is
necessarypublic static Decimal3f valueOf(Decimal<?> value)
Decimal3f whose value is calculated by rounding
the specified Decimal argument to scale 3 using
HALF_UP rounding. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - Decimal value to convert into a Decimal3fDecimal3f calculated as: roundHALF_UP(value)IllegalArgumentException - if value is too large to be represented as a Decimal3fpublic static Decimal3f valueOf(Decimal<?> value, RoundingMode roundingMode)
Decimal3f whose value is calculated by rounding
the specified Decimal argument to scale 3 using
the specified roundingMode. An exception is thrown if the
specified value is too large to be represented as a Decimal3f.value - Decimal value to convert into a Decimal3froundingMode - the rounding mode to apply during the conversion if necessaryDecimal3f calculated as: round(value)IllegalArgumentException - if value is too large to be represented as a Decimal3fArithmeticException - if roundingMode==UNNECESSARY and rounding is
necessarypublic static Decimal3f valueOf(String value)
Decimal into a
Decimal3f. The string representation consists of an
optional sign, '+' or '-' , followed by a sequence of
zero or more decimal digits ("the integer"), optionally followed by a
fraction.
The fraction consists of a decimal point followed by zero or more decimal
digits. The string must contain at least one digit in either the integer
or the fraction. If the fraction contains more than 3 digits, the
value is rounded using HALF_UP rounding. An
exception is thrown if the value is too large to be represented as a
Decimal3f.
value - String value to convert into a Decimal3fDecimal3f calculated as: roundHALF_UP(value)NumberFormatException - if value does not represent a valid Decimal
or if the value is too large to be represented as a
Decimal3fpublic static Decimal3f valueOf(String value, RoundingMode roundingMode)
Decimal into a
Decimal3f. The string representation consists of an
optional sign, '+' or '-' , followed by a sequence of
zero or more decimal digits ("the integer"), optionally followed by a
fraction.
The fraction consists of a decimal point followed by zero or more decimal
digits. The string must contain at least one digit in either the integer
or the fraction. If the fraction contains more than 3 digits, the
value is rounded using the specified roundingMode. An exception
is thrown if the value is too large to be represented as a Decimal3f.
value - String value to convert into a Decimal3froundingMode - the rounding mode to apply if the fraction contains more than
3 digitsDecimal3f calculated as: round(value)NumberFormatException - if value does not represent a valid Decimal
or if the value is too large to be represented as a
Decimal3fArithmeticException - if roundingMode==UNNECESSARY and rounding is
necessarypublic static Decimal3f valueOfUnscaled(long unscaledValue)
Decimal3f whose value is numerically equal to
(unscaledValue × 10-3).unscaledValue - unscaled value to convert into a Decimal3fDecimal3f calculated as:
unscaledValue × 10-3public static Decimal3f valueOfUnscaled(long unscaledValue, int scale)
Decimal3f whose value is numerically equal to
(unscaledValue × 10-scale). The result is
rounded to scale 3 using HALF_UP
rounding. An exception is thrown if the specified value is too large
to be represented as a Decimal3f.unscaledValue - unscaled value to convert into a Decimal3fscale - the scale to apply to unscaledValueDecimal3f calculated as:
roundHALF_UP(unscaledValue × 10-scale)IllegalArgumentException - if the specified value is too large to be represented as a
Decimal3fpublic static Decimal3f valueOfUnscaled(long unscaledValue, int scale, RoundingMode roundingMode)
Decimal3f whose value is numerically equal to
(unscaledValue × 10-scale). The result
is rounded to scale 3 using the specified roundingMode.
An exception is thrown if the specified value is too large to be
represented as a Decimal3f.unscaledValue - unscaled value to convert into a Decimal3scale - the scale to apply to unscaledValueroundingMode - the rounding mode to apply during the conversion if necessaryDecimal3f calculated as:
round(unscaledValue × 10-scale)IllegalArgumentException - if the specified value is too large to be represented as a Decimal3fprotected Decimal3f createOrAssign(long unscaled)
AbstractDecimalDecimal whose value is
(unscaled × 10-scale).
The returned value is a new instance if this decimal is an
ImmutableDecimal. If it is a MutableDecimal then its
internal state is altered and this is returned as result now
representing (unscaled × 10-scale).
createOrAssign in class AbstractDecimal<Scale3f,Decimal3f>unscaled - unscaled value to be returned as a Decimalprotected Decimal3f create(long unscaled)
AbstractDecimalDecimal whose value is
(unscaled × 10-scale).create in class AbstractDecimal<Scale3f,Decimal3f>unscaled - unscaled value to be returned as a Decimalprotected Decimal3f[] createArray(int length)
AbstractDecimalDecimal array of the specified length.createArray in class AbstractDecimal<Scale3f,Decimal3f>length - the length of the array to returnnew D[length]public Multipliable3f multiplyExact()
Decimal as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..) methods of the returned multiplier. The scale of
the result is the sum of the scales of this Decimal and the
second factor passed to the by(..) method.
The method is similar to multiplyExact(Decimal) but the result
is retrieved in exact typed form with the correct result scale.
For instance one can write:
Decimal5f product = this.multiplyExact().by(Decimal2f.FIVE);
public MutableDecimal3f toMutableDecimal()
DecimalDecimal value is already a MutableDecimal it is simply returned. Otherwise a new mutable
value with the same scale and numerical value as this Decimal is created and returned.this if mutable and a new MutableDecimal with the same scale and value as this
Decimal otherwisepublic Decimal3f toImmutableDecimal()
DecimalDecimal value is already an ImmutableDecimal it is simply returned. Otherwise a new
immutable value with the same scale and numerical value as this Decimal is created and returned.this if immutable and a new ImmutableDecimal with the same scale and value as
this Decimal otherwise