----- Original Message ----- From: "bhadson2001" <bhadson2001@yahoo.com> To: <AVR-Chat@yahoogroups.com> Sent: Thursday, February 28, 2008 8:13 AM Subject: [AVR-Chat] C problem > > unsigned char a; > a=255*20/10; > > it gives output 254 > > for > a=255*200/100; > > it gives output 111 > > why it gives different results. > > it there any logical relationship. > Try 255*(20/10) and 255*(200/10) Leon -- Leon Heller Amateur radio call-sign G1HSM Yaesu FT-817ND transceiver Suzuki SV1000S motorcycle leon355@btinternet.com http://www.geocities.com/leon_heller
Message
Re: [AVR-Chat] C problem
2008-02-28 by Leon
Attachments
- No local attachments were found for this message.