fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. long a,b;
  7. a = 2147483647;
  8. b = 1000;
  9. printf("%.2f",(double)a/(double)b); // No need to cast both a/(double)b is enough
  10. return 0;
  11. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
2147483.65