Math.ScaleB(Double, Int32) Method

Definition

Returns x * 2^n computed efficiently.

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

Parameters

x
Double

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