dls*_*sou 1 c++ floating-point
可能重复:
处理浮点数中的精度问题
码:
float flt = 78983636; // stores 78983632. as seen in debugger
flt = 79282056; // stores 79282056.
Run Code Online (Sandbox Code Playgroud)
为什么它不能准确存储第一个值,但能够为更大的第二个值?
| 归档时间: |
|
| 查看次数: |
918 次 |
| 最近记录: |