private boolean isLessThanOrEqual(Number a, Number b) {

		if (Objects.equals(a, b)) {
			return true;
		}

		if (a == null || b == null) {
			return false;
		}

		Double doubleA = a.doubleValue();
		Double doubleB = b.doubleValue();
		int result = doubleA.compareTo(doubleB);
		if (result < 0) {
			return true; // a is less than b
		}

		return false;
	}
Returns true if filter 'a' is a more specific version of filter 'b'

@param a the potential sub-filter
@param b the potential parent filter
@return true if filter 'a' is a more specific version of filter 'b'
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/matchtable/NumberRangeSubFilterChecker.java