@Override
    protected void writeValue(final BigDecimal value, final Buffer buffer, final GraphBinaryWriter context) throws IOException {
        context.writeValue(value.scale(), buffer, false);
        context.writeValue(value.unscaledValue(), buffer, false);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BigDecimalSerializer.java