How can I perform a relative comparison test on numeric values?