??? 04/15/07 19:18 Read: times |
#137299 - its a lot easier to use fixed point Responding to: ???'s previous message |
You can then break the number down into its integer part and its fractional part and compare the two seperatly so you could do something like
if((int1>int2)||((int1==int2)&&(fracpart1>fracpart2))) as a comparison. |
Topic | Author | Date |
if else statements in keil c51 | 01/01/70 00:00 | |
Things to check | 01/01/70 00:00 | |
example | 01/01/70 00:00 | |
And it might help to use hex | 01/01/70 00:00 | |
floating point | 01/01/70 00:00 | |
Not true | 01/01/70 00:00 | |
further... | 01/01/70 00:00 | |
I suggest you read this.. | 01/01/70 00:00 | |
Test Seems To Work | 01/01/70 00:00 | |
SDCC version works also | 01/01/70 00:00 | |
Testing the typo...![]() | 01/01/70 00:00 | |
its a lot easier to use fixed point | 01/01/70 00:00 |