Big Integer.Right Shift Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Right | Shifts the bits to the right, discarding bits on the right. |
Right | Shifts the bits to the right with rounding. |
RightShift(BigInteger, Int32)
Shifts the bits to the right, discarding bits on the right.
public static BigInteger RightShift(
BigInteger value,
int shift
)
Parameters
- value BigInteger
- The number to shift.
- shift Int32
- The number of bits to shift the number to the right.
Return Value
BigIntegerA BigInteger which represents value shifted to the right by shift bits.
RightShift(BigInteger, Int32, RoundingMode)
Shifts the bits to the right with rounding.
public static BigInteger RightShift(
BigInteger value,
int shift,
RoundingMode roundingMode
)
Parameters
- value BigInteger
- The number to shift.
- shift Int32
- The number of bits to shift the number to the right.
- roundingMode RoundingMode
- A RoundingMode that specifies how the result should be rounded.
Return Value
BigIntegerA BigInteger which represents value shifted to the right by shift bits.