parity-checker

1.0.2 • Public • Published

Provides functions for parity checking.

Determining the parity of integers is a difficult task. Howecver, as a service to the reader we provide the following function. The function returnTrueIfOdd returns true if applied to an odd integer. As a supplement, the function returnTrueIfNotOdd returns true if applied to an integer that isn't odd. Also, same functions are provided for checking even numbers - returnTrueIfEven, returnTrueIfNotEven.

The author has formally verified that these functions satisfy their specifications.

Readme

Keywords

Package Sidebar

Install

npm i parity-checker

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • helgi98