Calculation result is different depending on decimal or double
This question already has an answer here:
Doubles are not an exact representation: there is a lot of rounding and truncation (but you do get a much greater range).
Reading: What Every Computer Scientist Should Know About Floating-Point Arithmetic.
链接地址: http://www.djcxy.com/p/21350.html上一篇: 什么时候应该使用double而不是小数?
下一篇: 计算结果因小数或双倍而不同