@Test
	public void testNegativeValueEntered() throws Exception {
		// enter a negative value; the hexLabel should show the correct
		// byte sequence
		setSearchFormat(SearchFormat.DECIMAL);
		setDecimalSize(2);
		setInput("-1234");
		assertEquals("2e fb", getByteString());

		setDecimalSize(1);
		assertEquals("46 -5", getInput());

		setInput("-55");
		assertEquals("c9", getByteString());

		setDecimalSize(4);
		assertEquals("-55", getInput());
		assertEquals("c9 ff ff ff", getByteString());

		setDecimalSize(8);
		assertEquals("-55", getInput());
		assertEquals("c9 ff ff ff ff ff ff ff", getByteString());

		setSearchFormat(SearchFormat.FLOAT);
		assertEquals("00 00 5c c2", getByteString());

		setSearchFormat(SearchFormat.DOUBLE);
		assertEquals("00 00 00 00 00 80 4b c0", getByteString());
	}
Tests for searching for decimal values in memory.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/MemSearchNumbersTest.java