Math.ScaleB(Double, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回報 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 執行時,且不同作業系統或架構間的精確結果或有效輸入範圍可能有所不同。