fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long x = 1LL << 59;
  6. cout.precision(5);
  7. cout << fixed << x << ' ' << (double) x << ' ' << (double) (x - 1) << endl;
  8. }
Success #stdin #stdout 0s 4320KB
stdin
Standard input is empty
stdout
576460752303423488 576460752303423488.00000 576460752303423488.00000