常数折叠 问答列表

为什么 0.1 + 0.2 == 0.3 in D?

作者:Stas 提问时间:7/29/2011

assert(0.1 + 0.2 != 0.3); // shall be true 是我最喜欢的检查语言是否使用本地浮点运算。 C++ #include <cstdio> int main(...


共1条 当前第1页