private long getValue(String tok) {
		switch (byteSize) {
			case 4:
				float floatValue = Float.parseFloat(tok);
				return Float.floatToIntBits(floatValue);
			case 8:
			default:
				double dvalue = Double.parseDouble(tok);
				return Double.doubleToLongBits(dvalue);
		}
	}
{@link SearchFormat} for parsing and display bytes in a float or double format.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/FloatSearchFormat.java