// allow for decimal point and sign and one more for trailing null
int capacity = precision + 3;
ByteBuffer digits = ByteBuffer.allocateDirect(capacity);
int returnCode = Utils.decimal_bin2str(byteBuffer, length, precision, scale, digits, capacity);
if (returnCode != 0) {
throw new ClusterJUserException(
local.message("ERR_Binary_Decimal_To_String",
returnCode, precision, scale, dumpBytes(byteBuffer)));
}
String string = null;
// look for the end (null) of the result string