FloatDomain
class in io.proptastic
class FloatDomainfloats, all of them unless bounded: floats().atLeast(0).lessThan(1). Drawn by
doubles()’s laws in float’s own range, so Float.MAX_VALUE is an end, not
an infinity a rounded double lands on: a whole number first, then one with a short
fraction, then anything in range, shrinking to 0.0f if it can (decision 88).
Unbounded, it also draws NaN, the infinities, -0.0f and the smallest
subnormal, Float.MIN_VALUE, one try in 16 among them; .finite() or any bound
leaves them out.
Methods
finite
FloatDomain finite()Finite numbers only: no NaN and no infinities. A bounded range is always finite.