Evaluate the binary logarithm of an integer number.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static int Log2(
this int number
)
Parameters
- number Int32
[Missing <param name="number"/> documentation for "M:Altaxo.Calc.Euclid.Log2(System.Int32)"]
Return Value
Int32[Missing <returns> documentation for "M:Altaxo.Calc.Euclid.Log2(System.Int32)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks Two-step method using a De Bruijn-like sequence table lookup.
See Also