Menu

#370 Logical comparison error

2.5.next
open
nobody
1
2014-04-09
2014-04-09
No

FYI - (ticket 300) Still unable to open link:
'Before submitting a Bug Report, you should read this webpage.'
(Error 404) http://www.linuxcnc.org/content/view/48/13/lang,en/
so I apologize if I did anything incorrectly.

The Logical comparisons 'EQ' and 'NE' are returning invalid results.

The test program (see attachment) returns the following output:

Log output only shows the first 6 decimal positions of the value.
X = 0.863173, C = 863172798364.529663
Y = 0.863173, D = 863172798364.529541

Compare Results:
X EQ Y - invalid compare results
X NE Y - invalid compare results
X GT Y - valid
X GE Y - valid
X LT Y - valid
X LE Y - valid

It appears as though the 'EQ' and the 'NE' compares use fewer digits than other compares.
I know this is a 'nit-pick', but (I think) all comparisons should be compatible.
I.e. If 'X' is greater than 'Y', then is should NOT be equal to 'Y'.

1 Attachments

Discussion