Modifier and Type | Method and Description |
---|---|
static int |
compareUnscaled(long unscaled,
int scale,
long otherUnscaled,
int otherScale)
Compares the two unscaled values with possibly different scales.
|
public static final int compareUnscaled(long unscaled, int scale, long otherUnscaled, int otherScale)
unscaled
- the first unscaled value to comparescale
- the scale of the first valueotherUnscaled
- the second unscaled value to compareotherScale
- the scale of the second value0
if unscaled1 == unscaled2
; a value
less than 0
if unscaled1 < unscaled2
; and a value
greater than 0
if unscaled1 > unscaled2