Constant proptest::num::f32::QUIET_NAN
[−]
[src]
pub const QUIET_NAN: Any=
Any(<FloatTypes>::QUIET_NAN)
Generates "Quiet NaN" floats.
Operations on quiet NaNs generally simply propagate the NaN rather than invoke any exception mechanism.
Note that there is currently no SIGNALING_NAN
is the question of
whether generation of signaling NaNs is safe is currently
uncertain.
The payload of the NaN is uniformly distributed over the possible
values which safe Rust allows, including the sign bit (as
controlled by POSITIVE
and NEGATIVE
). Note however that as of
Rust 1.23.0, this constitutes only one particular payload due to
apparent issues with particular MIPS and PA-RISC processors which
fail to implement IEEE 754-2008 correctly.