Skip to content

Fp comparisons #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Fp comparisons #10

merged 2 commits into from
Aug 8, 2022

Conversation

gitsbi
Copy link
Owner

@gitsbi gitsbi commented Jul 7, 2022

This is a major redesign of the floating point comparison feature (is_near()). The library now offers is_near(), is_smaller(), and is_greater() and all of these can be passed either a tolerance value or a tolerance fraction and a nominal. The library will calculate a value from the latter two by multiplying them. There are default values for all three of these.

@gitsbi gitsbi merged commit 4cba5d5 into main Aug 8, 2022
@gitsbi gitsbi deleted the fp_comparisons branch August 8, 2022 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants