@Override
    protected BigDecimal readValue(final Buffer buffer, final GraphBinaryReader context) throws IOException {
        final int scale = context.readValue(buffer, Integer.class, false);
        final BigInteger unscaled = context.readValue(buffer, BigInteger.class, false);
        return new BigDecimal(unscaled, scale);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BigDecimalSerializer.java