Respect units when comparing numbers