Checks if two numbers have equal signs.
+0 and -0 are considered equal.
+0
-0
const result = equalSign(3, 0.5);console.log(result); // true
true if both numbers have the same sign, otherwise false
true
false
the number to compare against
Generated using TypeDoc
Checks if two numbers have equal signs.
+0and-0are considered equal.Example
Returns
trueif both numbers have the same sign, otherwisefalse