core/src/main/java/com/orientechnologies/common/serialization/types/ODecimalSerializer.java
@Override
  public BigDecimal deserializeFromByteBufferObject(ByteBuffer buffer) {
    final int scale = buffer.getInt();
    final byte[] unscaledValue = OBinaryTypeSerializer.INSTANCE.deserializeFromByteBufferObject(buffer);

    return new BigDecimal(new BigInteger(unscaledValue), scale);
  }
@Override
  public BigDecimal deserializeFromByteBufferObject(ByteBuffer buffer) {
    final int scale = buffer.getInt();
    final byte[] unscaledValue = OBinaryTypeSerializer.INSTANCE.deserializeFromByteBufferObject(buffer);

    return new BigDecimal(new BigInteger(unscaledValue), scale);
  }
@ Override public BigDecimal deserializeFromByteBufferObject ( ByteBuffer buffer ) { final int scale = buffer . getInt ( ) ; final byte [ ] unscaledValue = OBinaryTypeSerializer . INSTANCE . deserializeFromByteBufferObject ( buffer ) ; return new BigDecimal ( new BigInteger ( unscaledValue ) , scale ) ; }
{@inheritDoc}
{