MathHelper.NextPowerOfTwo Method

Definition

Overloads

NextPowerOfTwo(Single)
NextPowerOfTwo(Int64)
NextPowerOfTwo(Int32)
NextPowerOfTwo(Double)

NextPowerOfTwo(Single)

public static float NextPowerOfTwo (float n);
static member NextPowerOfTwo : single -> single

Parameters

n
Single

Returns

NextPowerOfTwo(Int64)

public static long NextPowerOfTwo (long n);
static member NextPowerOfTwo : int64 -> int64

Parameters

n
Int64

Returns

NextPowerOfTwo(Int32)

public static int NextPowerOfTwo (int n);
static member NextPowerOfTwo : int -> int

Parameters

n
Int32

Returns

NextPowerOfTwo(Double)

public static double NextPowerOfTwo (double n);
static member NextPowerOfTwo : double -> double

Parameters

n
Double

Returns

Applies to