Skip to content

Conversation

@f-fr
Copy link
Contributor

@f-fr f-fr commented Jul 26, 2017

This addresses #16.

The trait Float is deliberately not implemented for NotNaN because of the required methods nan and is_nan. Unfortunately, this makes many of the useful methods from Float unavailable for NotNaN, but as long as a Float is required to support a NaN-value I do not see a way around it. (Maybe it would be a good idea for num to split Float into two traits, Real and NaN, and then trait Float: Real + NaN, but this discussion should probably go to num itself).

@olson-sean-k
Copy link

Thanks for putting together this PR, @Lyro; I was about to propose similar changes. Better integration with num will be very helpful. Can we get an update from the maintainers on this? @reem?

@mbrubeck
Copy link
Collaborator

mbrubeck commented Jun 6, 2018

I published a (hopefully temporary) fork that includes this change: https://crates.io/crates/new-ordered-float

@olson-sean-k
Copy link

See also an alternative I've created here.

@mbrubeck
Copy link
Collaborator

mbrubeck commented Sep 7, 2018

Merged in #47.

@mbrubeck mbrubeck closed this Sep 7, 2018
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.

3 participants