proposal-bigint 介绍
BigInt是 一个 新的原语,它提供了一种表示大于2的53次方整数的 方法 ,这是JavaScript可以用Number原语可靠地表示的最大数字。
const x = Number.MAX_SAFE_INTEGER;
// ? 9007199254740991,this is 1 less than 2^53
const y = x + 1;
// ? 9007199254740992,ok,checks out
const z = x + 2
// ? 9007199254740992,wait,that’s the same as above!
网站地址 : https://tc39.github.io/proposal-bigint
GitHub: https://github.com/tc39/proposal-bigint
网站描述: JavaScript中的任意精度整数
proposal-bigint官方网站
官方网站: https://tc39.github.io/proposal-bigint
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did174779