Something About Float Divide

xiaoxiao2021-03-06  105

The Expression

Volume = Calculatecylinder Volume (FRADIUS, FHEIGHT) / 3;

Will BE All Right, while:

Fvolume = (1/3) * CalculateCylinderVolume (FRADIUS, FHEIGHT);

Will Be Wrong, The Result IS 0.00

-End-

转载请注明原文地址:https://www.9cbs.com/read-125293.html

New Post(0)