-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added comparison functions for floats and doubles… (#2321)
* Added comparison functions for floats and doubles, providing a safer way to do things like `double value; if( value == 0.0 ){}`. * Added approxEqualRelative() functions and removed the custom epsilon in favor of FLT_EPSILON and DBL_EPSILON. authored-by: paulhoux <[email protected]>
- Loading branch information
Showing
1 changed file
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters