标签: c++ c++11 floating-point precision
深夜,我很尴尬地问:
为什么double类型的按位否定会引发错误?
double
我理解double-precision floating point如何存储在内存中,但我确实遗漏了一些东西......
double left = 1; double nLeft = ~(left); error: invalid argument type 'double' to unary expression double nLeft = ~(left); ^~~~~~~