Double m=0, k=10000, d=10000;
M=k - d;
The result of m is not equal to 0
In addition, StrToFloat (Edit1 - & gt; Text), the result is not what you need to value,
Please expert help, thank you.
CodePudding user response:
Has a floating point precision range, cannot like integer can be precisely equal
CodePudding user response:
Floating point number m==0 judgment can use fabs (m) & lt; 1 e - 6 instead
CodePudding user response:
The