語言

MathF.ScaleB(Single, Int32) 方法

定義

回報 x * 2^n 的有效計算。

public:
 static float ScaleB(float x, int n);
public static float ScaleB(float x, int n);
static member ScaleB : single * int -> single
Public Shared Function ScaleB (x As Single, n As Integer) As Single

參數

x
Single

一個單精度浮點數,用來指定基準值。

n
Int32

一個單精度浮點數,用來表示冪次。

傳回

x * 2^N 有效率地計算。

適用於