float f = 735.64;
int i = (int)f;
float f2 = f - i;
cout<<f2<<endl;
The value outputted by f2 is simply not 0.64 but something like 0.6400015 I just want to have the value in f2 as either 0.64 or 0.640000.. so could I do it without using any inbuilt functions as such?
Thanks.