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
热门推荐
10 孩子16岁祝福语简短
11 5岁宝宝祝福语简短
12 怎么生孩子祝福语简短
13 新婚过年祝福语大全简短
14 离别简短的祝福语大全
15 职场祝福语大全 简短精辟
16 国庆求婚祝福语简短精辟
17 夸赞老师祝福语搞笑简短
18 祝贺开业文案祝福语简短