Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: npd_ddit
Forum: C++ Jul 14th, 2009
Replies: 3
Views: 363
Posted By npd_ddit
thank you mrinal..
i think it is because the default datatype is double ..hence to do a proper comparison of float values,we have to specify it .
thanks.
Forum: C++ Jul 13th, 2009
Replies: 3
Views: 363
Posted By npd_ddit
main()
{
float a=0.7;
if(a<0.7) cout<<"true" ;else cout<<"false";
}
problem---> it prints true .....
when 0.7 is replaced everywhere with 0.8 it displays false
again with 0.9 , it displays...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC