fork(1) download
  1. #include <stdint.h>
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. uint64_t u64 = (1LL << 63) - 123456789 + (1LL << 63);
  6. printf("%lu\n", u64);
  7. double f64 = u64;
  8. printf("%lf\n", f64);
  9. }
  10.  
Success #stdin #stdout 0s 4288KB
stdin
Standard input is empty
stdout
18446744073586094827
18446744073586094080.000000