Why does a f32 literal with a value equal to 2^-32 trigger clippy's excessive precision lint?
The Rust Programming Language Forum
Why does a f32 literal with a value equal to 2^-32 trigger clippy's excessive precision lint?
The mantissa can be all zeroes, and the biased exponent can push the implicit 1 far enough down to end up with the value according to my understanding of floats, as it's just a single bit with a lot of zeroes before it in fixed-point.
0 comments
No comments yet.