Modifier and Type | Method and Description |
---|---|
static long |
subtractLongUnscaled(DecimalRounding rounding,
long lValue,
long unscaled,
int scale)
Calculates unchecked rounded subtraction of a long value and an unscaled
value with the given scale.
|
static long |
subtractLongUnscaled(long lValue,
long unscaled,
int scale)
Calculates unchecked unrounded subtraction of a long value and an unscaled
value with the given scale.
|
static long |
subtractUnscaledLong(DecimalArithmetic arith,
long uDecimal,
long lValue)
Calculates unchecked subtraction of an unscaled value and a long value.
|
static long |
subtractUnscaledLongChecked(DecimalArithmetic arith,
long uDecimal,
long lValue)
Calculates checked subtraction of an unscaled value and a long value.
|
static long |
subtractUnscaledUnscaled(ScaleMetrics scaleMetrics,
DecimalRounding rounding,
long uDecimal,
long unscaled,
int scale)
Calculates unchecked rounded subtraction of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
static long |
subtractUnscaledUnscaled(ScaleMetrics scaleMetrics,
long uDecimal,
long unscaled,
int scale)
Calculates unchecked unrounded subtraction of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
static long |
subtractUnscaledUnscaledChecked(DecimalArithmetic arith,
DecimalRounding rounding,
long uDecimal,
long unscaled,
int scale)
Calculates checked rounded subtraction of an unscaled value and another
unscaled value with the given
arith and scale ,
respectively. |
static long |
subtractUnscaledUnscaledChecked(DecimalArithmetic arith,
long uDecimal,
long unscaled,
int scale)
Calculates checked unrounded subtraction of an unscaled value and another
unscaled value with the given
scaleMetrics and scale ,
respectively. |
public static final long subtractLongUnscaled(long lValue, long unscaled, int scale)
lValue
- the long valueunscaled
- the unscaled valuescale
- the scale of the second valuepublic static final long subtractLongUnscaled(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 subtractUnscaledLong(DecimalArithmetic arith, long uDecimal, long lValue)
arith
- the arithmetic associated with the first valueuDecimal
- the unscaled valuelValue
- the long valuepublic static final long subtractUnscaledLongChecked(DecimalArithmetic arith, long uDecimal, long lValue)
arith
- the arithmetic associated with the first valueuDecimal
- the unscaled valuelValue
- the long valuepublic static final long subtractUnscaledUnscaled(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 subtractUnscaledUnscaled(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 subtractUnscaledUnscaledChecked(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 subtractUnscaledUnscaledChecked(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