fork(4) download
  1. #include <stdio.h>
  2. void foo (long double x) {
  3. int y = x;
  4. printf("(int)%Lf = %d\n", x, y);
  5. }
  6. int main () {
  7. foo(.9999999999999999999728949456878623891498136799780L);
  8. foo(.999999999999999999972894945687862389149813679978L);
  9. return 0;
  10. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
(int)1.000000 = 1
(int)1.000000 = 0