BigInteger.Log2 Method

Computes the integer base-2 logarithm of a value.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public static BigInteger Log2(
	BigInteger value
)

Parameters

value  BigInteger
The value.

Return Value

BigInteger
The integer base-2 logarithm of value, or minus one when the value is zero.

Implements

IBinaryNumber<TSelf>.Log2(TSelf)

See Also