Math.random()的精度 [英] precision of Math.random()
本文介绍了Math.random()的精度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
JavaScript的 Math.random()
函数的精度是多少?
What is the precision of JavaScript's Math.random()
function?
推荐答案
Math.random()
生成一个大于或等于零且小于1的16位小数的浮点数。
Math.random()
generates a floating point number of 16 decimal places greater than or equal to zero and less than 1.
这篇关于Math.random()的精度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文