Click or drag to resize
Accord.NET (logo)

ToolsPow2 Method

Calculates power of 2.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static int Pow2(
	int power
)
Request Example View Source

Parameters

power
Type: SystemInt32
Power to raise in.

Return Value

Type: Int32
Returns specified power of 2 in the case if power is in the range of [0, 30]. Otherwise returns 0.
See Also