Home > Back-end > Questions about DELPHI float processing
Questions about DELPHI float processing
Time:10-27
I was five decimal places of float type data Calculate storage to 3 decimal places after object Lead to data finally lost 2 decimal places content into 0.00 For a better solution
CodePudding user response:
Since only 3 decimal places, that is sure to truncate the last 2 decimal places, Can expand 100 times, do the opposite when use reduction operation, but should pay attention to overflow,