code: private double bytesToDouble(byte[] bytes) {
          ByteBuffer original = byteArrayToByteBuffer(bytes);
  
          if (bytes.length < BYTES_IN_DOUBLE) {
              ByteBuffer byteBuffer = ByteBuffer.allocate(BYTES_IN_DOUBLE);
              if (sasFileProperties.getEndianness() == 1) {
                  byteBuffer.position(BYTES_IN_DOUBLE - bytes.length);
              }
              byteBuffer.put(original);
              byteBuffer.order(original.order());
              byteBuffer.position(0);
              original = byteBuffer;
          }
  
          return original.getDouble();
      }
docs: The function to convert an array of bytes into a double number.
  
  @param bytes a double number represented by an array of bytes.
  @return a number of the double type that is the conversion result.