This is an old revision of the document!


+


Synopsis


Return the sum of the arguments

Stack Diagram


Input Stack Output Stack
O O O
Level 2 / Argument 1 Level 1 / Argument 2 Level 1

Legend

Type Operator
Parallel list processing Group 6
Affected by flags-20 Underflow exception
-21 Overflow exception
-22 Infinite result exception
-23 Negative underflow flag
-24 Positive underflow flag
-25 Overflow flag
-26 Infinite flag

Description

Description

Compatibility


This command is only partially compatible with userRPL.

Usage


The following program:

« 123
  456
  789
  DROP
»

leaves 123 and 456 on the stack.

Related Commands

Overloadable operators 26 3 NEW

Operator Short Description
Evaluation operators:
EVAL1 Evaluate one level NEW
EVAL Evaluate full depth
XEQ Execute NEW
→NUM Compute numeric result
Test operators:
== Equality test
Not equal test
< Less than test
Less than or equal test
> Greater than test
Greater than or equal test
CMP Comparison test (<0 if A<B, 0 if A==B, >0 if A>B) NEW
SAME Comparison test, true if objects are the same
ISTRUE True test NEW
Logical operators:
AND Logical AND
OR Logical OR
XOR Logical XOR
NOT Logical NOT
Mathematic operators:
+ Addition
- Subtraction
* Multiplication
/ Division
^ Power
XROOT Root
INV Inverse
NEG Negate/change sign
ABS Magnitude or absolute value
  • manual/chapter6/operators/cmd_ovr_add.1570489388.txt.gz
  • Last modified: 2019/10/07 16:03
  • by jojo1973