Constraints to be applied on double

Remarks

Since 2.6.0

Hierarchy

  • DoubleConstraints

Properties

max?: number

Upper bound for the generated 64-bit floats (included)

Default Value

Number.POSITIVE_INFINITY, 1.7976931348623157e+308 when noDefaultInfinity is true

Remarks

Since 2.8.0

min?: number

Lower bound for the generated 64-bit floats (included)

Default Value

Number.NEGATIVE_INFINITY, -1.7976931348623157e+308 when noDefaultInfinity is true

Remarks

Since 2.8.0

noDefaultInfinity?: boolean

By default, lower and upper bounds are -infinity and +infinity. By setting noDefaultInfinity to true, you move those defaults to minimal and maximal finite values.

Default Value

false

Remarks

Since 2.8.0

noNaN?: boolean

When set to true, no more Number.NaN can be generated.

Default Value

false

Remarks

Since 2.8.0

Generated using TypeDoc