-
最好完全避免使用浮点数比较。
It would be best to try to avoid floating point comparison entirely.
youdao
-
可以看到,对于比较小的2的幂次方,浮点数是非常精确的。
As you can see, floats are pretty accurate for small powers of two.
youdao
-
可以看到,对于比较小的2的幂次方,浮点数是非常精确的。
As you can see, floats are pretty accurate for small powers of two.
youdao