anymod

Modulo operations based on mathematical approach

Usage no npm install needed!

<script type="module">
  import anymod from 'https://cdn.skypack.dev/anymod';
</script>

README

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