Why does a f32 literal with a value equal to 2^-32 trigger clippy's excessive precision lint?

· Users Rust Lang · Oct. 27, 2026, 5:24 p.m.
Summary
The post discusses the unexpected behavior of Clippy's excessive precision lint in Rust when it comes to floating-point literals, specifically explaining the author's confusion over why a correct value triggers this lint and their decision to allow it despite potential clarity issues in the code.
AUTHOR