xiaofeng198225 发表于 2008-4-11 10:44:32

To Long Integer Details

If the fractional part of the floating-point or fixed-point value is .5, the function rounds the value to the nearest even integer. For example, the function rounds 13.5 to 14 and rounds 14.5 to 14.不是四舍五入吗?为什么14.5也是14那?13.5也是14?认真的菜鸟期待大侠的回答啊哈哈

飞雨天 发表于 2008-4-11 10:50:26

the function rounds the value to the nearest even integer
所以结果都是14,因为14是偶数

wofly 发表于 2008-4-11 11:06:42

当初就因为这个问题致使100片的手机PCBA板返工重测。
庆幸发现的早,没有造成大的后果。:L
页: [1]
查看完整版本: To Long Integer Details