<-- 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: 200x  ANS94  Forth-83  FIG
Forth 200x Reference: 6.1.0120
ANS94 Reference:
Description:

Add n2 | u2 to n1 | u1, giving the sum n3 | u3.

Standard Reference URL: http://forth-standard.org/standard/core/Plus
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 + ->          3 }T
T{        1 -2 + ->         -1 }T
T{       -1  2 + ->          1 }T
T{       -1 -2 + ->         -3 }T
T{       -1  1 + ->          0 }T
T{ MID-UINT  1 + -> MID-UINT+1 }T