Elementary.Scale By Power Of Two Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Scale | Multiplies a number by a power of two. |
Scale | Multiplies a number by a power of two. |
ScaleByPowerOfTwo(Double, Int32)
Multiplies a number by a power of two.
public static double ScaleByPowerOfTwo(
double value,
int exponent
)
Parameters
Return Value
DoubleThe number value multiplied by a factor of 2 to the power exponent.
ScaleByPowerOfTwo(Single, Int32)
Multiplies a number by a power of two.
public static float ScaleByPowerOfTwo(
float value,
int exponent
)
Parameters
Return Value
SingleThe number value multiplied by a factor of 2 to the power exponent.