Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T14:09:24.000Z (over 3 years ago)
- Last Synced: 2024-04-13T09:58:42.771Z (9 months 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
```[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-rational.svg)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-rational/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-rational.svg)](https://www.npmjs.org/package/@aureooms/js-rational)
[![Build](https://img.shields.io/travis/make-github-pseudonymous-again/js-rational/main.svg)](https://travis-ci.com/make-github-pseudonymous-again/js-rational/branches)
[![Dependencies](https://img.shields.io/david/make-github-pseudonymous-again/js-rational.svg)](https://david-dm.org/make-github-pseudonymous-again/js-rational)
[![Dev dependencies](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-rational.svg)](https://david-dm.org/make-github-pseudonymous-again/js-rational?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-rational.svg)](https://github.com/make-github-pseudonymous-again/js-rational/issues)
[![Downloads](https://img.shields.io/npm/dm/@aureooms/js-rational.svg)](https://www.npmjs.org/package/@aureooms/js-rational)[![Code issues](https://img.shields.io/codeclimate/issues/make-github-pseudonymous-again/js-rational.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/make-github-pseudonymous-again/js-rational.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/make-github-pseudonymous-again/js-rational/main.svg)](https://codecov.io/gh/make-github-pseudonymous-again/js-rational)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/make-github-pseudonymous-again/js-rational.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-rational/trends/technical_debt)
[![Documentation](https://make-github-pseudonymous-again.github.io/js-rational/badge.svg)](https://make-github-pseudonymous-again.github.io/js-rational/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-rational)](https://bundlephobia.com/result?p=@aureooms/js-rational)