Standard built-ins

Number.EPSILON

Try the free JavaScript compiler

The positive gap from 1 to the next larger representable Number. It is useful for reasoning about precision near 1, not as a universal tolerance at all magnitudes.

Formal Syntax & Structure

javascript syntaxjavascript
Number.EPSILON

Return Value

number

2^-52.

Working Example

Example Snippetjavascript
console.log(1+Number.EPSILON>1);
JavaScript Reference