Decimal Math.Scale By Power Of Two Method
Multiplies a Decimal value by a power of two.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The number value multiplied by a factor of 2 to the power exponent.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static decimal ScaleByPowerOfTwo(
decimal value,
int exponent
)
Parameters
Return Value
DecimalThe number value multiplied by a factor of 2 to the power exponent.