i am taking input in double up to 2 decimal place long and then multiplying it with 100 and storing in int .
double s;
cin>>s;
int p=s*100;
cout<<p;
however when i input a number say 285.65 i am getting a output of 28564. I cannot figure out why it is being truncated.