fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. long long x = 999999999999999950ll;
  6. float f = x;
  7. double d = x;
  8. long double ld = x;
  9. printf("%.0f\n%.0f\n%.0Lf", f, d, ld);
  10. }
Success #stdin #stdout 0s 5360KB
stdin
Standard input is empty
stdout
999999984306749440
1000000000000000000
999999999999999950