number-parity
v1.0.0
Published
returns parity of an integer
Downloads
1
Readme
number-parity
No. of bits of an integer determines parity of a number. If it is even, parity is 0, else it's 1.
Usage
Installation
$ npm install number-parity
Example
var parity = require('number-parity')
console.log(parity(34)) // 0
console.log(parity(42)) // 1
License
MIT