CodePudding user response:
Should be the problem of floating point precision, can be specified FormatFloat small digital outputCodePudding user response:
https://blog.csdn.net/TheRedFox/article/details/105844065CodePudding user response:
Format (' % n '[(366.32-375) + 8.68]).CodePudding user response:
Is the accuracy problems, solution many:With a round integer can also,
Floattostr (round (1000 * ((366.32-375) - (8.68)))/1000);
So after the decimal point three zero,
There are a lot of methods, the upstairs method is feasible,