Add float comparison function.
Add tests for float comparison function.