Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Issue successfully resolved

???
11/26/04 12:21
Read: times


 
#82014 - Precision
Responding to: ???'s previous message
when i run this program its going to true block.
can anyone tell why its going to true block. plz advice

Well 100.000000 is pretty damn close to 100.000008, isn't it!?

What on earth are you doing that needs this precision?!

Anyhow, there is a compiler option that affects the comparison precision of floats - see the Manual.

Remember, floats will always give you issues with rounding & precision - another reason why they are usually best avoided in embedded systems!



List of 5 messages in thread
TopicAuthorDate
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      

Back to Subject List