Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能的重复: 巨大的整数 JavaScript 库
假设我想要2^1000的确切值。我应该如何获得全部价值?也许每次乘法完成时都将它存储在一个字符串中,但它最终仍会超过 10 位!有什么办法,还是 ECMAScript 不支持这个?
Math.pow(2,1000)
返回
1.0715086071862673e+301
你需要它有多准确?