if(f<0.7) :: in this statment 0.7 is stored in double and its value 0.7ABCDEFGH where A B C D are garbage..
so f must be less then 0.7
-----Original Message-----
From: suresh kanna [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 25, 2004 5:58 PM
To: [EMAIL PROTECTED]
Subject: (PT) Digest Numberhai,
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
Yahoo! India Matrimony: Find your partner online.
To unsubscribe : [EMAIL PROTECTED]
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4875
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.
