I had the following code :
#include <bits/stdc++.h>
using namespace std;
int main()
{
double a;
cin >> a;
cout << floor(a*100.00) << endl;
return 0;
}
So when I give input 1.15 the expected answer should have been 115, input of 1.16 gives 115. Why is this happening ? Link to ideone https://ideone.com/