目录

JavaScript Number EPSILON

Example

let x = Number.EPSILON;
Try it Yourself »

Description

Number.EPSILON returns the difference between the smallest floating point number greater than 1 and 1.

Number.EPSILON has the value of 2.220446049250313e-16.


Number.EPSILON

EPSILON is a property of the JavaScript Number object.

You can only use it as Number.EPSILON.

Using x.EPSILON, where x is a variable, will return undefined:

Example

let x = 100;
x.EPSILON;
Try it Yourself »

Syntax

Number.EPSILON

Return Value

Type Description
Number 2.220446049250313e-16

Browser Support

Number.EPSILON is an ECMAScript6 (ES6) feature.

ES6 (JavaScript 2015) is supported in all modern browsers:

Chrome Edge Firefox Safari Opera
Yes Yes Yes Yes Yes

Number.EPSILON is not supported in Internet Explorer 11 (or earlier).