Skip to content
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

Define a strategy for floating point numbers that are not comparable #238

Open
cschwan opened this issue Aug 3, 2023 · 0 comments
Open
Assignees
Milestone

Comments

@cschwan
Copy link
Contributor

cschwan commented Aug 3, 2023

We often need to compare two floating point numbers a and b in Rust, which can be done using a.partial_cmp(b).unwrap(). This panics as soon numbers like NaN are involved. We should investigate whether we can avoid them using Errors (instead panics) when creating certain objects.

@cschwan cschwan added this to the v1.0 milestone Aug 3, 2023
@cschwan cschwan self-assigned this Aug 3, 2023
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

No branches or pull requests

1 participant