SPLat Logo

fTestWeqZ [D>=25]

NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

fTestWeqZ [D>=25]

Push a TRUE (255) into X if W = 0 (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 fTestWgeQ fTestWgeZ fTestWgtQ fTestWleQ fTestWltQ fTestWltZ fTestWneQ 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.