Hi, i have a simple control like this:
if(sum>1.0)...
If i try to print sum i get 1.000000 but the check returns true. I think it depends on float precision. How can i modify the check?
thanks
7.12.14 Comparison macros - in C standards require that there be macros to handle float comparisons correctly. I think you want isgreater(). Review your math man page for details.
Also when you print a float, depending on the format specification, the [f]printf routine rounds numbers. Example 1.999999 becomes 2