Elementary.SameSign 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#
public static bool SameSign(
	double a,
	double b
)

Parameters

a  Double
A number.
b  Double
A number.

Return Value

Boolean
true if the sign bit of a is equal to the sign bit of b; otherwise false.

See Also