'宣言 Public Shared Function log2( _ ByVal x As System.Integer _ ) As System.Integer
'使用法 Dim x As System.Integer Dim value As System.Integer value = MathUtil.log2(x)
public static System.int log2( System.int x )
パラメータ
- x
- The value to calculate log2 on.
戻り値の型
floor(log(x)/log(2)), calculated in an exact way.