SPLat Logo

fSign

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

fSign

Replaces the number in floating point register W with a number representing its sign.

All positive W, including +Infinity, result in +1 in W.

Zero W results in 0 (i.e. no change)

All negative W, including -Infinity, result in -1 in W.

NaN in W remains unchanged.

The R register is not affected.

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

See also fAbs, fNeg