fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. double x = 40.535099029541016;
  8. float x1 = 40.535099;
  9. cout<<(int)(floor(x*10000))<<endl;
  10. cout<<(int)(floor(x1*10000))<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
405350
405351