| QuasiRandomNumberGeneratorLogBase2 Method |
Somewhat efficient algorithm for computing the truncated log base 2
of a nonnegative integer.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected static int LogBase2(
int v
)
Protected Shared Function LogBase2 (
v As Integer
) As Integer
protected:
static int LogBase2(
int v
)
static member LogBase2 :
v : int -> int
Parameters
- v Int32
- A nonnegative integer.
Return Value
Int32Integer portion of the log base 2 of
v.
See Also