BigInteger.CopySign Method

Copies the sign of a value to the sign of another value.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static BigInteger CopySign(
	BigInteger value,
	BigInteger sign
)

Parameters

value  BigInteger
The value whose magnitude is used in the result.
sign  BigInteger
The value whose sign is used in the result.

Return Value

BigInteger
A value with the magnitude of value and the sign of sign.

Implements

INumber<TSelf>.CopySign(TSelf, TSelf)

See Also