Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

MitMaro/modulus-combine

Repository files navigation

Modulus Combine

Dependency Status

Install

npm install modulus-combine

Documentation

Full API Docs

Modulus Combine JSDocs

Basic Usage

var ModulusCombine = require('modulus-combine');

// 4 digits before the decimal and keep 5 decimal digits (9 total)
var modulusCombine = new ModulusCombine(4, 10);

modulusCombine.compress(3.456789, 367.123123123);
// -> 34567800000036712000

modulusCombine.deflate(34567800000036712000);
// -> [ 3.45678, 367.12448 ]

License

Modulus Combine is released under the ISC license. See LICENSE.

About

A library allowing the combination of two numbers into one integer value, and the later retrieval of the numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published