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 が効率的に計算されます。

適用対象