Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/make-github-pseudonymous-again/js-integer
:zzz: Integers for JavaScript (ℤ)
https://github.com/make-github-pseudonymous-again/js-integer
arbitrary-precision arithmetic big-int big-integer big-integers big-num big-number big-numbers bigint biginteger bigintegers bignum bignumber bignumbers computer-science gcd integers javascript js mathematics
Last synced: 4 days ago
JSON representation
:zzz: Integers for JavaScript (ℤ)
- Host: GitHub
- URL: https://github.com/make-github-pseudonymous-again/js-integer
- Owner: make-github-pseudonymous-again
- License: agpl-3.0
- Created: 2014-06-11T12:49:55.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T14:09:08.000Z (over 3 years ago)
- Last Synced: 2024-04-13T09:58:42.595Z (8 months ago)
- Topics: arbitrary-precision, arithmetic, big-int, big-integer, big-integers, big-num, big-number, big-numbers, bigint, biginteger, bigintegers, bignum, bignumber, bignumbers, computer-science, gcd, integers, javascript, js, mathematics
- Language: JavaScript
- Homepage: https://make-github-pseudonymous-again.github.io/js-integer
- Size: 4.6 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:zzz: [@aureooms/js-integer](https://make-github-pseudonymous-again.github.io/js-integer)
==Integers for JavaScript.
See [docs](https://make-github-pseudonymous-again.github.io/js-integer).
Parent is [@aureooms/js-algorithms](https://github.com/make-github-pseudonymous-again/js-algorithms).```js
import { ZZ } from '@aureooms/js-integer' ;
const a = ZZ.from( '2983928392839289387' ) ;
const b = ZZ.from( '-302940923028393' ) ;
a.mul( b ).toString( ) ; // '-903954021577363596419770144565091'
```[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-integer.svg)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-integer/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-integer.svg)](https://www.npmjs.org/package/@aureooms/js-integer)
[![Build](https://img.shields.io/travis/make-github-pseudonymous-again/js-integer/main.svg)](https://travis-ci.com/make-github-pseudonymous-again/js-integer/branches)
[![Dependencies](https://img.shields.io/david/make-github-pseudonymous-again/js-integer.svg)](https://david-dm.org/make-github-pseudonymous-again/js-integer)
[![Dev dependencies](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-integer.svg)](https://david-dm.org/make-github-pseudonymous-again/js-integer?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-integer.svg)](https://github.com/make-github-pseudonymous-again/js-integer/issues)
[![Downloads](https://img.shields.io/npm/dm/@aureooms/js-integer.svg)](https://www.npmjs.org/package/@aureooms/js-integer)[![Code issues](https://img.shields.io/codeclimate/issues/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/make-github-pseudonymous-again/js-integer/main.svg)](https://codecov.io/gh/make-github-pseudonymous-again/js-integer)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/make-github-pseudonymous-again/js-integer.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/technical_debt)
[![Documentation](https://make-github-pseudonymous-again.github.io/js-integer/badge.svg)](https://make-github-pseudonymous-again.github.io/js-integer/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@aureooms/js-integer)](https://bundlephobia.com/result?p=@aureooms/js-integer)## :baby: Children
The current underlying implementation uses big endian order. There is no
alternative for the moment.- [ ] [BigInt](https://developer.mozilla.org/en-US/docs/Glossary/BigInt)
- [x] [@aureooms/js-integer-big-endian](https://github.com/make-github-pseudonymous-again/js-integer-big-endian)
- [ ] [@aureooms/js-integer-little-endian](https://github.com/make-github-pseudonymous-again/js-integer-little-endian)## :scroll: Reference
- [The GNU Multiple Precision Arithmetic Library](https://gmplib.org/)
- https://gmplib.org/gmp-man-6.0.0a.pdf
- https://en.wikipedia.org/wiki/Sch%C3%B6nhage%E2%80%93Strassen_algorithm## :link: Links
- [Similar work on GitHub](https://github.com/search?l=JavaScript&o=desc&q=bigint&s=stars&type=Repositories)