private void canDecodeDecimalFloatFromBytes(final byte[] bytes) { final MutableAsciiBuffer string = new MutableAsciiBuffer(new byte[bytes.length + 2]); string.putBytes(1, bytes); final DecimalFloat price = new DecimalFloat(); string.getFloat(price, 1, bytes.length); Assert.assertEquals("Incorrect Value", value, price.value()); Assert.assertEquals("Incorrect Scale", scale, price.scale()); }