Skip to content

signEqual

Subhajit Sahu edited this page Aug 1, 2022 · 15 revisions

Checks if two values have equal sign.

Similar: abs, signEqual.


signEqual(x, y)
// x: first int32
// y: second int32

const xinteger = require('extra-integer');


xinteger.signEqual(20, 12);
// → true

xinteger.signEqual(20, -13);
// → false

xinteger.signEqual(-21, -13);
// → true


References

Clone this wiki locally