BigFloat.CopySign Method

Copies the sign of a number to another number.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static BigFloat CopySign(
	BigFloat magnitudeValue,
	BigFloat signValue
)

Parameters

magnitudeValue  BigFloat
The value whose sign is to be adjusted.
signValue  BigFloat
The value whose sign is to be used.

Return Value

BigFloat
A number with the magnitude of magnitudeValue and the sign of signValue.

Implements

INumber<TSelf>.CopySign(TSelf, TSelf)

Exceptions

ArgumentNullException

magnitudeValue is null.

-or-

signValue is null.

See Also