neg ( x -- -x )
Factor handbook » The language » Numbers » Mathematical functions » Arithmetic functions

Next:recip ( x -- y )


Vocabulary
math

Inputs
xa number


Outputs
-xa number


Word description
Computes a number's additive inverse.

Definition

: neg ( x -- -x ) -1 * ; inline