Elementary.Same Sign Method
Returns whether two numbers have the same sign bit.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.4
C#
true if the sign bit of a is equal to the sign bit of b; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.4
public static bool SameSign(
double a,
double b
)
Parameters
Return Value
Booleantrue if the sign bit of a is equal to the sign bit of b; otherwise false.