Method add
add()
Adds the first two values on top of the stack and replaces them with the result.
Declaration
public void add()
add(Int32, Int32)
Adds the values at index a
and b
relative to the top of the stack
and replaces the value at index a with the result.
Declaration
public void add(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | a | Relative index of the first stack entry. |
System.Int32 | b | Relative index of the second stack entry. |
add(UInt32, UInt32)
Adds the values at index a
and b
as absolute indices in the stack
and pushes the result on top of the stack.
Declaration
public void add(uint a, uint b)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | a | Absolute index of a stack entry. |
System.UInt32 | b | Absolute index of a stack entry. |
Remarks
see: mark() for absolute indices.
add(UInt32)
Adds the value at index a as absolute index in the stack
and the value on top of the stack.
Replaces the value on top of the stack with the result.
Declaration
public void add(uint a)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | a | Absolute index of a stack entry. |
Remarks
see: mark() for absolute indices.
add(BigRational)
Adds value a
and the value on top of the stack.
Replaces the value on top of the stack with the result.
Declaration
public void add(BigRational a)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | A BigRational value. |
add(BigRational, BigRational)
Adds the values a
and b
and pushes the result on the stack.
Declaration
public void add(BigRational a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | A BigRational as first value. |
BigRational | b | A BigRational as second value. |