Method div
div()
Divides the first two values on top of the stack and replaces them with the result.
Declaration
public void div()
Remarks
Divides a / b where b is the value on top of the stack.
div(Int32, Int32)
Divides 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 div(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. |
div(UInt32, UInt32)
Divides 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 div(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.
div(BigRational, BigRational)
Divides the values a
and b
and pushes the result on the stack.
Declaration
public void div(BigRational a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | A BigRational as first value. |
BigRational | b | A BigRational as second value. |
div(BigRational, Int32)
Divides the value a
and the value at index b
relative to the top of the stack.
Pushes the result on top of the stack.
Declaration
public void div(BigRational a, int b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | A BigRational as first value. |
System.Int32 | b | A relative index of a stack entry. |