SyntaxFix
Write A Post
Hire A Developer
Questions
This is the notorious floating point rounding issue. Just add a very small number, to correct the issue.
double a; a=3669.0; int b; b=a+ 1e-9;