SPLat Logo

fTestWneQ [D>=25]

NOTICE: We are updating our website. For product enquiries and orders please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

fTestWneQ [D>=25]

X = (W != Q)

Push a TRUE (255) into X if W not equal to Q (floating point comparison). Otherwise push 0 (FALSE) into X.

This instruction is designed to assist in the use of Tabula, our table based programming tool.

Dialect restriction: This instruction is not implemented in boards with dialect numbers less than 25.

See also fTestWeqQ fTestWeqZ fTestWgeQ fTestWgeZ fTestWgtQ fTestWleQ fTestWltQ fTestWltZ fTestWneZ

Note that there is an inherent hazard in comparing two floating point numbers for equality. The numbers you are comparing may have been arrived at via a number of arithmetic operations. Because floating point arithmetic has limited accuracy (24 bits = about 6 or 7 decimal digits in our case), two numbers that should be identical may differ by a small amount. That means an equals test may fail on two numbers that should be identical.