blob: 391fdca72a873b4c7ae71c95c641b3e80ccdc1f4 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (C) 2016 The V8 Project authors. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5es6id: 20.1.2.1
6esid: sec-number.epsilon
7description: >
8 "EPSILON" property of Number
9info: >
10 20.1.2.1 Number.EPSILON
11
12 The value of Number.EPSILON is the difference between 1 and the smallest value
13 greater than 1 that is representable as a Number value, which is approximately
14 2.2204460492503130808472633361816 x 10-16.
15
16 This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
17 [[Configurable]]: false }.
18includes: [propertyHelper.js]
19---*/
20
21assert(
22 Number.EPSILON > 0,
23 "value is greater than 0"
24);
25assert(
26 Number.EPSILON < 0.000001,
27 "value is smaller than 0.000001"
28);
29
30verifyNotEnumerable(Number, "EPSILON");
31verifyNotWritable(Number, "EPSILON");
32verifyNotConfigurable(Number, "EPSILON");