共用方式為


MathHelper.NextPowerOfTwo 方法

定義

多載

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

NextPowerOfTwo(Single)

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

參數

n
Single

傳回

適用於

NextPowerOfTwo(Int64)

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

參數

n
Int64

傳回

適用於

NextPowerOfTwo(Int32)

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

參數

n
Int32

傳回

適用於

NextPowerOfTwo(Double)

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

參數

n
Double

傳回

適用於