Big Integer.Log 2 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#
The integer base-2 logarithm of value, or minus one when the value is zero.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
public static BigInteger Log2(
BigInteger value
)Parameters
- value BigInteger
- The value.
Return Value
BigIntegerThe integer base-2 logarithm of value, or minus one when the value is zero.