Multiplies a value by a power of two.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static T ScaleByPowerOfTwo(
T value,
int exponent
)
Public Shared Function ScaleByPowerOfTwo (
value As T,
exponent As Integer
) As T
public:
static T ScaleByPowerOfTwo(
T value,
int exponent
)
static member ScaleByPowerOfTwo :
value : 'T *
exponent : int -> 'T
Parameters
- value
- Type: T
The value to multiply. - exponent
- Type: SystemInt32
An exponent. May be negative.
Return Value
Type:
Tvalue multiplied by two to the power
exponent.
Numerical Libraries
Supported in: 5.x
Reference