Modifier and Type | Method and Description |
---|---|
static long |
addLongUnscaled(DecimalRounding rounding,
long lValue,
long unscaled,
int scale)
Calculates unchecked rounded addition of a long value and an unscaled
value with the given scale.
|
static long |
addLongUnscaled(long lValue,
long unscaled,
int scale)
Calculates unchecked unrounded addition of a long value and an unscaled
value with the given scale.
|
static long |
addUnscaledLong(DecimalArithmetic arith,
long uDecimal,
long lValue)
Calculates unchecked addition of an unscaled value and a long value.
|
static long |
addUnscaledLongChecked(DecimalArithmetic arith,
long uDecimal,
long lValue)
Calculates checked addition of an unscaled value and a long value.
|
static long |
addUnscaledUnscaled(ScaleMetrics scaleMetrics,
DecimalRounding rounding,
long uDecimal,
long unscaled,
int scale)
Calculates unchecked rounded addition of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
static long |
addUnscaledUnscaled(ScaleMetrics scaleMetrics,
long uDecimal,
long unscaled,
int scale)
Calculates unchecked unrounded addition of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
static long |
addUnscaledUnscaledChecked(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal,
long unscaled,
int scale)
Calculates checked rounded addition of an unscaled value and another
unscaled value with the given
arith and scale ,
respectively. |
static long |
addUnscaledUnscaledChecked(DecimalArithmetic arith,
long uDecimal,
long unscaled,
int scale)
Calculates checked unrounded addition of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
public static final long addLongUnscaled(long lValue, long unscaled, int scale)
lValue
- the long valueunscaled
- the unscaled valuescale
- the scale of the second valuepublic static final long addLongUnscaled(DecimalRounding rounding, long lValue, long unscaled, int scale)
rounding
- the rounding to applylValue
- the long valueunscaled
- the unscaled valuescale
- the scale of the second valuepublic static final long addUnscaledLong(DecimalArithmetic arith, long uDecimal, long lValue)
arith
- the arithmetic associated with the first valueuDecimal
- the unscaled valuelValue
- the long valuepublic static final long addUnscaledLongChecked(DecimalArithmetic arith, long uDecimal, long lValue)
arith
- the arithmetic associated with the first valueuDecimal
- the unscaled valuelValue
- the long valuepublic static final long addUnscaledUnscaled(ScaleMetrics scaleMetrics, long uDecimal, long unscaled, int scale)
scaleMetrics
and scale
,
respectively.scaleMetrics
- the scaleMetrics associated with the first valueuDecimal
- the first unscaled valueunscaled
- the second unscaled valuescale
- the scale of the second valuepublic static final long addUnscaledUnscaled(ScaleMetrics scaleMetrics, DecimalRounding rounding, long uDecimal, long unscaled, int scale)
scaleMetrics
and scale
,
respectively.scaleMetrics
- the scaleMetrics associated with the first valuerounding
- the rounding to applyuDecimal
- the first unscaled valueunscaled
- the second unscaled valuescale
- the scale of the second valuepublic static final long addUnscaledUnscaledChecked(DecimalArithmetic arith, long uDecimal, long unscaled, int scale)
scaleMetrics
and scale
,
respectively.arith
- the arithmetic associated with the first valueuDecimal
- the first unscaled valueunscaled
- the second unscaled valuescale
- the scale of the second valuepublic static final long addUnscaledUnscaledChecked(DecimalArithmetic arith, DecimalRounding rounding, long uDecimal, long unscaled, int scale)
arith
and scale
,
respectively.arith
- the arithmetic associated with the first valuerounding
- the rounding to applyuDecimal
- the first unscaled valueunscaled
- the second unscaled valuescale
- the scale of the second value