LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does this program return false?

Hello,
I have a problem about a simple program.

I added two constant number,value of them 1,2 and 0,15.After that i
compared 1,35 and sum of them(1,35) are they equal or not.The results
of this program must be true.But program returns false. For another
numbers which sum of them equal to 1,35 the program returns true.Why
does it return false for these numbers.


(a+b) =? c. Where a=1,2 b=0,15 c=1,35.

It returns false. Where is the mistake?
I need your help.

Thanks.

0 Kudos
Message 1 of 4
(3,001 Views)

Hi

Actually there is no error. Have a look at this threads:

http://forums.ni.com/ni/board/message?board.id=170&message.id=180324&query.id=191502#M180324

http://forums.ni.com/ni/board/message?board.id=170&message.id=102835&query.id=191502#M102835

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 4
(2,997 Views)
just wanted to add:
Good old Floating number comparison scenario Smiley Very Happy
 
It can be extremely stupefying, but once you understand the reason behing it, your mind will be at ease
 
reading links pointed by Thomas ( 5 stars to you Smiley Wink ) will get you through

Message Edited by devchander on 09-05-2006 01:00 AM

0 Kudos
Message 3 of 4
(2,998 Views)
And don't forget to read Nick's link in your first post of the same question.
0 Kudos
Message 4 of 4
(2,957 Views)