JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q28781F
  • License GPLv3

rational.js: tools and libraries using rational numbers.

Package Exports

  • bigrat

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bigrat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rational.js

javascript tools and libraries based around rational numbers.

heavily inspired by glMatrix (http://glmatrix.net/), a high performance matrix and vector library.

Example usage in Node.js:

var rational = require('bigrat').rational;
var a = new rational(4, 5); // 4/5 
var b = rational.fromDecimal(123.456789);
var c = a.times(b);
console.log('result: ' + c);

Documentation:

http://acerix.github.io/rational.js/

Releases:

http://acerix.github.io/rational.js/releases/rationaljs.lite.alpha.js (only contains rat{} and rational{})

http://acerix.github.com/rational.js/releases/rationaljs.alpha.js (includes bigrat{}, etc.)