you can use a pair of relational contacts - one comparing the upper v-memory location with the upper word of your value, the other comparing the lower v-mem with the low half of the value - but that's very ugly and hard to maintain.
the best answer is to use the cmpd instruction with it's sp60, 61 & 62 bits to do the comparison. using math functions with sp bits isn't much better, but it's much more maintainable over the long haul.