JavaScript Number EPSILON property

Definition and usage

Number.EPSILON Returns the difference between 1 and the smallest floating-point number in JavaScript.

Number.EPSILON The value is 2.220446049250313e-16.

See also:

MAX_VALUE property

MIN_VALUE property

MAX_SAFE_INTEGER property

MIN_SAFE_INTEGER property

NEGATIVE_INFINITY property

POSITIVE_INFINITY property

Example

let x = Number.EPSILON;

Try it yourself

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.

All modern browsers support ES6 (JavaScript 2015):

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported Supported Supported Supported Supported

Internet Explorer 11 (or earlier versions) does not support Number.EPSILON.