private static class DecimalScaleFactor.UpSmall extends DecimalScaleFactor
Modifier and Type | Field and Description |
---|---|
private long |
longMultiplier |
powerOf10
Constructor and Description |
---|
UpSmall(int powerOf10,
long multiplier) |
Modifier and Type | Method and Description |
---|---|
ScaleFactor |
concat(ScaleFactor innerFactor)
Concatenate (that is, multiply) this scale factor with
innerFactor . |
long |
targetFloor(long srcNumericalValue) |
boolean |
targetOutOfRange(long srcNumericalValue,
long maxAbsValue) |
long |
targetValue(long srcNumericalValue) |
appendExponentTo, asExponentialStringBuilder, compareTo, equals, get, getEngFloorFactor, getMultiplier, getSciFloorFactor, hashCode, invert, isInteger, isUnity, targetOutOfRange, targetValue
concat, getOffset, invertAndConcat, invertAndConcat, targetFloor, targetIntFloor, targetNumber, targetNumber
public ScaleFactor concat(ScaleFactor innerFactor)
ScaleFactor
innerFactor
. This is just a
special case of ScaleFactor.concat(IScalarAffineTransform)
.concat
in class DecimalScaleFactor
ScaleFactor.concat(IScalarAffineTransform)
public boolean targetOutOfRange(long srcNumericalValue, long maxAbsValue)
targetOutOfRange
in interface IScalarAffineTransform
targetOutOfRange
in class DecimalScaleFactor
public long targetValue(long srcNumericalValue)
targetValue
in interface IScalarAffineTransform
targetValue
in class DecimalScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong
public long targetFloor(long srcNumericalValue)
targetFloor
in interface IScalarAffineTransform
targetFloor
in class DecimalScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong