Click or drag to resize

QuasiRandomNumberGeneratorLogBase2 Method

Somewhat efficient algorithm for computing the truncated log base 2 of a nonnegative integer.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
protected static int LogBase2(
	int v
)

Parameters

v  Int32
A nonnegative integer.

Return Value

Int32
Integer portion of the log base 2 of v.
See Also