Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js] 第399天 Number()的存储空间是多大?假如接口返回一个超过最大字节的数字怎么办? #2396

Open
haizhilin2013 opened this issue May 18, 2020 · 1 comment
Labels
js JavaScript

Comments

@haizhilin2013
Copy link
Collaborator

第399天 Number()的存储空间是多大?假如接口返回一个超过最大字节的数字怎么办?

我也要出题

@haizhilin2013 haizhilin2013 added the js JavaScript label May 18, 2020
@jsThin
Copy link

jsThin commented May 20, 2020

Number类型的最大值为2的53次方,即9007199254740992,如果超过这个值,比如900719925474099222,那么得到的值会不精确,也就是900719925474099200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js JavaScript
Projects
None yet
Development

No branches or pull requests

2 participants