A helper to compare two numbers approximately