Skip to content

Update number.md #270

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

Closed
wants to merge 1 commit into from
Closed

Conversation

lio-mengxiang
Copy link
Contributor

@lio-mengxiang lio-mengxiang commented Apr 19, 2024

IEEE 754 中,双精度浮点数精度的计算我个人认为是这样的 ,因为最大的尾数是1.{52个1}(默认隐藏一个固定的1), 指数能让小数点往前移动52位,所以最大整数是1....一共53个1,然后就是2∧52+2∧51+…+2∧1+2∧0 一个等比数列求和的计算~结果为2∧53-1,所以精度范围是 -(2的53次方 – 1) 和2的53次方 – 1 之间的整数

IEEE 754 中,双精度浮点数精度的计算我个人认为是这样的 ,因为最大的尾数是1.{52个1}(默认隐藏一个固定的1), 指数能让小数点往前移动52位,所以最大整数是1....一共53个1,然后就是2∧52+2∧51+…+2∧1+2∧0 一个等比数列求和的计算~结果为2∧53-1,所以精度范围是 -(253 – 1) 和253 – 1 之间的整数
@ruanyf
Copy link
Contributor

ruanyf commented Apr 19, 2024

其实范围是 -2^^53 + 1 到 2^^53 - 1,我来改掉。

@ruanyf ruanyf closed this in 7070f24 Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants