Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.