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 新婚祝福语简短十六字
11 收到公公生日祝福语简短
12 老婆生日祝福语短句简短
13 祝福语勤奋大全简短英语
14 年底老板祝福语简短的
15 古风婚礼祝福语唯美简短
16 新婚祝福语简短句子
17 团体年会祝福语简短霸气
18 儿子31岁祝福语简短