How to use general zero and one for f32 and f64?


#1

Trait Float has disappeared. How to use any float constants now?


#2

The old num-stuff has moved to its own crate: https://crates.io/crates/num/


#3

Use default-features = false like this with num if you just need the traits. It’s a very small dependency that way.

For example:

[dependencies.num]
version = "0.1"
default-features = false