API / Core / Float / Constants

Constants

nan

RESCRIPT
let nan: float

The special value "Not a Number" See NaN on MDN.

Examples

RESCRIPT
Float.Constants.nan

epsilon

RESCRIPT
let epsilon: float

Represents the difference between 1 and the smallest floating point number greater than 1. See Number.EPSILON on MDN.

Examples

RESCRIPT
Float.Constants.epsilon

positiveInfinity

RESCRIPT
let positiveInfinity: float

The positive Infinity value See Number.POSITIVE_INFINITY on MDN.

Examples

RESCRIPT
Float.Constants.positiveInfinity

negativeInfinity

RESCRIPT
let negativeInfinity: float

The negative Infinity value See Number.NEGATIVE_INFINITY on MDN.

Examples

RESCRIPT
Float.Constants.negativeInfinity

minValue

RESCRIPT
let minValue: float

The smallest positive numeric value representable in JavaScript. See Number.MIN_VALUE on MDN.

Examples

RESCRIPT
Float.Constants.minValue

maxValue

RESCRIPT
let maxValue: float

The maximum positive numeric value representable in JavaScript. See Number.MAX_VALUE on MDN.

Examples

RESCRIPT
Float.Constants.minValue