SyntaxFix
Write A Post
Hire A Developer
Questions
double a = 100.3; printf("%f %d\n", a, (int)(a* 10.0)); Output Cygwin 100.3 1003 Output MinGW: 100.3 1002
Using (int) to convert double to int seems not to be fail-safe
You can find more about that here: Convert double to int?