Get base of binary logarithm.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static int Log2(
	int x
)

Parameters

x
Type: System..::.Int32
Source integer number.

Return Value

Power of the number (base of binary logarithm).

See Also