private String convertFromDifferentNumberFormat(String text, SearchSettings oldSettings,
			SearchSettings newSettings) {
		int oldSize = oldSettings.getDecimalByteSize();
		int newSize = newSettings.getDecimalByteSize();
		boolean oldUnsigned = oldSettings.isDecimalUnsigned();
		boolean newUnsigned = newSettings.isDecimalUnsigned();

		if (oldSize == newSize && oldUnsigned == newUnsigned) {
			return text;
		}
		// if the new format is smaller, first try re-parsing to avoid unnecessary 0's
		if (oldSize > newSize) {
			if (isValidText(text, newSettings)) {
				return text;
			}
		}
		return getTextFromBytes(text, oldSettings, newSettings);
	}
{@link SearchFormat} for parsing and display bytes in a decimal format. It supports sizes of
2,4,8,16 and can be either signed or unsigned.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/DecimalSearchFormat.java