Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     const float x = M_PI;
  7.     printf("%d, %d, %d\n", x == M_PI, x < M_PI, x > M_PI);
  8.     printf("%d, %d, %d\n", x == (float) M_PI, x < (float) M_PI, x > (float) M_PI);
  9.     return 0;
  10. }
  11.  
  12. // OUTPUT
  13. // 0, 0, 1
  14. // 1, 0, 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement