<-- Home
Manage -->

-

In Arithmetic in Certified Forth Words

Word Name: -
Type: Standard word
Data Stack Signature: n1 | u1 n2 | u2 -- n3 | u3
Return Stack Signature: --
Availability:
Forth 200x Reference: 6.1.0160
ANS94 Reference:
Description:

Subtract n2 | u2 from n1 | u1, giving the difference n3 | u3.

Standard Reference URL: http://forth-standard.org/standard/core/Minus
Example:

None

Comment:

None

See Also: None listed
Test Code:

T{          0  5 - ->       -5 }T
T{          5  0 - ->        5 }T
T{          0 -5 - ->        5 }T
T{         -5  0 - ->       -5 }T
T{          1  2 - ->       -1 }T
T{          1 -2 - ->        3 }T
T{         -1  2 - ->       -3 }T
T{         -1 -2 - ->        1 }T
T{          0  1 - ->       -1 }T
T{ MID-UINT+1  1 - -> MID-UINT }T