Επεξεργασία

Κοινή χρήση μέσω


MathF.ScaleB(Single, Int32) Method

Definition

Returns x * 2^n computed efficiently.

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

Parameters

x
Single

A single-precision floating-point number that specifies the base value.

n
Int32

A single-precision floating-point number that specifies the power.

Returns

x * 2^n computed efficiently.

Applies to