MathF.ScaleB(Single, Int32) Metod

Definition

Returnerar x * 2^n som beräknas effektivt.

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

Parametrar

x
Single

Ett flyttal med enkel precision som anger basvärdet.

n
Int32

Ett flyttal med enkel precision som anger kraften.

Returer

x * 2^n beräknas effektivt.

Gäller för