fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main(){
  5. long double n = 2.36;
  6. n = n * 10000 + 0.5;
  7. long long int temp = (long long) n;
  8. cout << temp << endl;
  9. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
23600