AMT Datasouth PAL User Manual
Page 147
Advertising

141
neg
neg
Description
Returns the twos-complement of any number.
Usage
AnyNum
neg
NegNum
AnyNum
Integer or fixed-point. Number from which to return twos-complement of its
value.
NegNum
Integer or fixed-point. Negative value of AnyNum. Same object type as
AnyNum.
Comments
The neg operator pops the top object from operand stack, subtracts the value from zero, and
pushes the result onto the operand stack. The result's type will match the original value's type.
Advertising