Use tolerance comparing floats.

closes #2437
Merge remote-tracking branch 'origin/master'