Something about float divide
- 作者:xiaoxiao
- 发表时间:2020-12-23 11:00
- 来源:未知
The experession
fVolume = CalculateCylinderVolume(fRadius,fHeight) / 3;
will be all right, while:
fVolume = (1/3) * CalculateCylinderVolume(fRadius,fHeight) ;
will be wrong, the result is 0.00
-End-