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

float is_foo #114

Open
jayvdb opened this issue May 29, 2024 · 1 comment
Open

float is_foo #114

jayvdb opened this issue May 29, 2024 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented May 29, 2024

It would be great to have float validators for these:

https://doc.rust-lang.org/std/primitive.f64.html#method.is_nan (especially inverted : non_nan)

https://doc.rust-lang.org/std/primitive.f64.html#method.is_finite

https://doc.rust-lang.org/std/primitive.f64.html#method.is_normal

@Rolv-Apneseth
Copy link
Contributor

Rolv-Apneseth commented Sep 8, 2024

@jprochazk do you think a new float(non_nan, finite, normal) rule would be the way to do this or should things like this just be implemented with a custom validator?

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

2 participants