JavaScript 中的 `Number.EPSILON` 属性
Number 对象的 Number.EPSILON 属性表示 1 和大于 1 的最小浮点数之间的差值。
语法
其语法如下
Number.EPSILON
示例
<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>输出
Value of the epsilon: 2.220446049250313e-16
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP