/anymod

Modulo operations based on mathematical approach

Primary LanguageJavaScript

Anymod Build Status

A micropackage to calculate modulo operations based on the mathematical approach.

Installation

npm i anymod

Usage

const mod = require('anymod');

mod(17, -4) // -3

17 % -4 // 1