Can anyone help?
Instead of outputting the decimal 1.75, C outputs 7/4 as 1.0000.
I very much need to obtain the exact decimal product of integer ratios to 2 decimal places and then compare it to another decimal number.
For example,
if (7/4 > 1.25) printf("Yes\n");
else printf("No\n"); --> So the output SHOULD be "Yes", but instead will be "No".
Also for some reason, the gcc compiler I'm using does not recognize the "floor" function.
If anyone has any suggestions I would really appreciate it. Thanks in advance.