fork(2) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4.  
  5. int main()
  6. {
  7. printf("%lf\n", exp(log(1000000000000000000) / 2));
  8. printf("%lf\n", ceil(exp(log(1000000000000000000) / 2)));
  9. return 0;
  10. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
999999999.999999
1000000000.000000