Fortran.Sign Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Sign( | Copies the sign from one number to another. |
Sign( | Copies the sign from one number to another. |
Sign( | Copies the sign from one number to another. |
Sign<T>(T, T) | Copies the sign from one number to another. |
Sign(Double, Double)
Copies the sign from one number to another.
public static double Sign(
double a,
double b
)
Parameters
Return Value
DoubleA number with the magnitude of a and the sign of b.
Sign(Int32, Int32)
Copies the sign from one number to another.
public static int Sign(
int a,
int b
)
Parameters
Return Value
Int32A number with the magnitude of a and the sign of b.
Sign<T>(T, T)
Copies the sign from one number to another.
public static T Sign<T>(
T a,
T b
)
Parameters
- a T
- The number whose sign to change.
- b T
- The number whose sign to copy.
Type Parameters
- T
- The type of the numbers.
Return Value
TA number with the magnitude of a and the sign of b.
Sign(Single, Single)
Copies the sign from one number to another.
public static float Sign(
float a,
float b
)
Parameters
Return Value
SingleA number with the magnitude of a and the sign of b.