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 有效计算。

适用于