class UnsignedDecimalEncodedValue extends UnsignedIntEncodedValue implements DecimalEncodedValue {

    @Override
    public final double getDecimal(boolean reverse, IntsRef ref) {
        int value = getInt(reverse, ref);
        if (useMaximumAsInfinity && value == maxValue)
            return Double.POSITIVE_INFINITY;
        if (value == 0)
            return defaultValue;
        return value * factor;
    }

    public  UnsignedDecimalEncodedValue(String name, int bits, double factor, boolean storeTwoDirections);
    public  UnsignedDecimalEncodedValue(String name, int bits, double factor, double defaultValue, boolean storeTwoDirections);
    public  UnsignedDecimalEncodedValue(String name, int bits, double factor, double defaultValue, boolean storeTwoDirections, boolean useMaximumAsInfinity);

}