Number.EPSILON Property in JavaScript


The Number.EPSILON property of the Number object represents the difference between 1 and the smallest floating point number greater than 1.

Syntax

Its Syntax is as follows

Number.EPSILON

Example

 Live Demo

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Number.EPSILON;
      document.write("Value of the epsilon : " + result);
   </script>
</body>
</html>

Output

Value of the epsilon: 2.220446049250313e-16

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 25-Jun-2020

86 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements