Math.ScaleB(Double, Int32) 方法

定义

高效返回 x * 2^n 计算。

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

参数

x
Double

一个双精度浮点数,用于指定基值。

n
Int32

一个指定电源的 32 位整数。

返回

x * 2^n 有效计算。

注解

此方法调用基础 C 运行时,确切的结果或有效输入范围在不同操作系统或体系结构之间可能有所不同。

适用于