https://github.com/make-github-pseudonymous-again/js-rational
:pizza: Rational numbers for JavaScript
https://github.com/make-github-pseudonymous-again/js-rational
arbitrary-precision arithmetic computer-science javascript js mathematics rational-numbers
Last synced: 5 months ago
JSON representation
:pizza: Rational numbers for JavaScript
- Host: GitHub
- URL: https://github.com/make-github-pseudonymous-again/js-rational
- Owner: make-github-pseudonymous-again
- License: agpl-3.0
- Created: 2014-06-11T12:46:42.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T14:09:24.000Z (about 4 years ago)
- Last Synced: 2024-04-13T09:58:42.771Z (about 1 year ago)
- Topics: arbitrary-precision, arithmetic, computer-science, javascript, js, mathematics, rational-numbers
- Language: JavaScript
- Homepage: https://aureooms.github.io/js-rational
- Size: 2.29 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:pizza: [@aureooms/js-rational](https://make-github-pseudonymous-again.github.io/js-rational)
==Fractions for JavaScript.
See
[@aureooms/js-rational-field](https://make-github-pseudonymous-again.github.io/js-rational-field)
for an implementation of the rational field ℚ base on this library
and
[@aureooms/js-integer](https://make-github-pseudonymous-again.github.io/js-integer).
See [docs](https://make-github-pseudonymous-again.github.io/js-rational).
Parent is [@aureooms/js-algorithms](https://github.com/make-github-pseudonymous-again/js-algorithms).```js
let [ a , b ] = add( 1 , 10 , 1 , 5 ) ;
a / b === 3 / 10 ; // true
```[](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-rational/main/LICENSE)
[](https://www.npmjs.org/package/@aureooms/js-rational)
[](https://travis-ci.com/make-github-pseudonymous-again/js-rational/branches)
[](https://david-dm.org/make-github-pseudonymous-again/js-rational)
[](https://david-dm.org/make-github-pseudonymous-again/js-rational?type=dev)
[](https://github.com/make-github-pseudonymous-again/js-rational/issues)
[](https://www.npmjs.org/package/@aureooms/js-rational)[](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/issues)
[](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/trends/churn)
[](https://codecov.io/gh/make-github-pseudonymous-again/js-rational)
[](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/trends/technical_debt)
[](https://make-github-pseudonymous-again.github.io/js-rational/source.html)
[](https://bundlephobia.com/result?p=@aureooms/js-rational)