Les på engelsk Rediger

Del via


MathF.ScaleB(Single, Int32) Method

Definition

Returns x * 2^n computed efficiently.

C#
public static float ScaleB(float x, int n);

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

Produkt Versjoner
net-10.0 net-10.0