Added ability to generate a float comparison with arbitrary threshold