Edit

Share via


MathHelper.NextPowerOfTwo Method

Definition

Overloads

NextPowerOfTwo(Single)

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

Parameters

n
Single

Returns

Applies to

NextPowerOfTwo(Int64)

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

Parameters

n
Int64

Returns

Applies to

NextPowerOfTwo(Int32)

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

Parameters

n
Int32

Returns

Applies to

NextPowerOfTwo(Double)

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

Parameters

n
Double

Returns

Applies to