| ??? 11/26/04 12:02 Read: times |
#82013 - " Responding to: ???'s previous message |
Hi all,
I am using Keil C51 compiler. when i compare two float variables for example.. i = 100.000000; j = 100.000008; if(i >= j) { true block } else { false block } when i run this program its going to true block. can anyone tell why its going to true block. plz advice It's because i==j. Read up on IEEE754 floating point representation to understand why. |
| Topic | Author | Date |
| float variable problem | 01/01/70 00:00 | |
| " | 01/01/70 00:00 | |
| Precision | 01/01/70 00:00 | |
| read this article | 01/01/70 00:00 | |
got the solution | 01/01/70 00:00 |



