Please sign in to comment.
Add IEEE float epsilon check
Because of IEEE 754 floating point error, doing a hard equality check does not always work (as with the case of 0.1 + 0.2). An epsilon check has been added to allow for these small rounding errors.
- Loading branch information...
Showing with 9 additions and 0 deletions.