Big Integer.Right Shift Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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.