Home > Back-end >  Solving floattostr ((366.32-375) - (8.68)) or floattostr (8.68), (366.32-375); Ranging from 0
Solving floattostr ((366.32-375) - (8.68)) or floattostr (8.68), (366.32-375); Ranging from 0

Time:11-03

Solving floattostr ((366.32-375) - (8.68)) or floattostr (+ 8.68) (366.32 375); Ranging from 0

CodePudding user response:

Should be the problem of floating point precision, can be specified FormatFloat small digital output

CodePudding user response:

https://blog.csdn.net/TheRedFox/article/details/105844065

CodePudding 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,
  • Related