BigInteger.RightShift Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

RightShift(BigInteger, Int32) Shifts the bits to the right, discarding bits on the right.
RightShift(BigInteger, Int32, RoundingMode) Shifts the bits to the right with rounding.

RightShift(BigInteger, Int32)

Shifts the bits to the right, discarding bits on the right.
C#
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

BigInteger
A BigInteger which represents value shifted to the right by shift bits.

RightShift(BigInteger, Int32, RoundingMode)

Shifts the bits to the right with rounding.
C#
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

BigInteger
A BigInteger which represents value shifted to the right by shift bits.

See Also