Constant proptest::num::f64::NORMAL

source ·
pub const NORMAL: Any;
Expand description

Generates “normal” floats.

These are finite values where the first bit of the mantissa is an implied 1. When positive, this represents the range MIN_POSITIVE through MAX, both inclusive.

Generated values are uniform over the discrete floating-point space, which means the numeric distribution is an inverse exponential step function. For example, values between 1.0 and 2.0 are generated with the same frequency as values between 2.0 and 4.0, even though the latter covers twice the numeric range.

If neither POSITIVE nor NEGATIVE is OR’ed with this constant, POSITIVE is implied.