next up previous contents index
Next: Arithmetic Expressions Up: Expressions Previous: Atomic Expressions

Unary Operators

    Glish provides three unary operators: + , - , and ! . The first simply yields the value of its operand; the second, its arithmetic negation; and the third, its logical negation. All require numeric operands and yield a numeric or boolean (for ``!") result, and all work on vectors as well as scalars. § 3.2.3, page gif, describes the first two and § 3.2.4, page gif, the third.



Thu Nov 13 16:44:05 EST 1997