SPLat Logo

fAbs

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

fAbs

W = (W >= 0) ? W : -W

Find the absolute value of a floating point number.

Forces W to be positive. It works on all numbers including infinity. NaN is unaffected.

The R-Register is not affected.

Dialect restriction: The fAbs instruction is not implemented in boards with dialect numbers less than 6, or which do not have the floating point processor.

See also fSign, fNeg