Title: Message

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 Number

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

 

 

Yahoo! India Matrimony: Find your partner online.

To unsubscribe : [EMAIL PROTECTED]






To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to