BigFloat.ScaleByPowerOfTwo Method

Multiplies a BigFloat value by a power of two.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public static BigFloat ScaleByPowerOfTwo(
	BigFloat value,
	int exponent
)

Parameters

value  BigFloat
The number to multiply.
exponent  Int32
The exponent of the power of two.

Return Value

BigFloat
The number value multiplied by a factor of 2 to the power exponent.

Remarks

The return value inherits the relative precision from value.

Exceptions

ArgumentNullException

value is null.

See Also