fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main(){
  5.  
  6. double a=4000000000;
  7. int b=a;
  8.  
  9. std::cout << std::fixed << a << '\n'
  10. << b << std::endl;
  11. }
stdin
Standard input is empty
compilation info
prog.cpp:6: warning: this decimal constant is unsigned only in ISO C90
stdout
4000000000.000000
2147483647