Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- const float x = M_PI;
- printf("%d, %d, %d\n", x == M_PI, x < M_PI, x > M_PI);
- printf("%d, %d, %d\n", x == (float) M_PI, x < (float) M_PI, x > (float) M_PI);
- return 0;
- }
- // OUTPUT
- // 0, 0, 1
- // 1, 0, 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement