Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

:pizza: [@aureooms/js-rational](https://make-github-pseudonymous-again.github.io/js-rational)
==







User:Acdx

/
Public Domain

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)