Posts by Victor Figueira • 21 points
1 post
-
2
votes0
answers36
viewsQ: Inaccurate value when calculating with float
Rest is giving 0.72998 and not 0.73 why? using namespace std; int main() { float num=576.73; int x=num; cout<<"x "<<x<<endl; cout<<"num "<<num<<endl; num=num-x;…
c++asked Victor Figueira 21