suresh kanna <[EMAIL PROTECTED]> wrote:
hai,
Can anyone help me(explain) in this program!
main()
{
float f= 0.7;
if(f<0.7)
{printf("The value less than 0.7");}
else
printf("The value greater ");
}
But the output appears as(the value less than 0.7)
why soo?The system reconizess the value as 0.69999..i think so(not sure)
Can anyone help me in this one...and explain y so!
thank u,
suresh kanna
*****************************************************************************************************
Hi
Ur knowledge that system recognizes the value as 0.69999 is right. the difference in result is compiler dependant. If im not wrong this the result which u got in Turbo C++|..
Try a more reliable and and new compiler. Result would have no issues....
Regards
Deepankar
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4802
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
