@Override
    public double getDecimal(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess) {
        int value = getInt(reverse, edgeId, edgeIntAccess);
        if (useMaximumAsInfinity && value == maxStorableValue)
            return Double.POSITIVE_INFINITY;
        return value * factor;
    }
@Test
    public void getDecimal() {
        DecimalEncodedValueImpl testEnc = new DecimalEncodedValueImpl("test", 3, 1, false);
        testEnc.init(new EncodedValue.InitializerConfig());

        EdgeIntAccess edgeIntAccess = new ArrayEdgeIntAccess(1);
        int edgeId = 0;
        assertEquals(0, testEnc.getDecimal(false, edgeId, edgeIntAccess), .1);

        testEnc.setDecimal(false, edgeId, edgeIntAccess, 7);
        assertEquals(7, testEnc.getDecimal(false, edgeId, edgeIntAccess), .1);
    }