EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.SignXY Method (Double, Double)

Returns the FORTRAN type SIGN of the Values - basically it returns a value with the Magnitude of First Value and the Sign of the Second Value.

[Visual Basic]
Overloads Public Shared Function SignXY( _
   ByVal x As Double, _
   ByVal y As Double _
) As Decimal
[C#]
public static decimal SignXY(
   double x,
   double y
);

Parameters

x
Value whose magnitude to process.
y
Value whose sign to process.

Return Value

magnitude of x with sign of y.

Remarks

If y is negative then Returns -Abs(x) else Returns Abs(x)

See Also

DecimalOps Class | Esb.Math Namespace | DecimalOps.SignXY Overload List