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: 3 months 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 (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T14:09:08.000Z (about 4 years ago)
- Last Synced: 2024-04-13T09:58:42.595Z (about 1 year 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'
```[](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-integer/main/LICENSE)
[](https://www.npmjs.org/package/@aureooms/js-integer)
[](https://travis-ci.com/make-github-pseudonymous-again/js-integer/branches)
[](https://david-dm.org/make-github-pseudonymous-again/js-integer)
[](https://david-dm.org/make-github-pseudonymous-again/js-integer?type=dev)
[](https://github.com/make-github-pseudonymous-again/js-integer/issues)
[](https://www.npmjs.org/package/@aureooms/js-integer)[](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/issues)
[](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/churn)
[](https://codecov.io/gh/make-github-pseudonymous-again/js-integer)
[](https://codeclimate.com/github/make-github-pseudonymous-again/js-integer/trends/technical_debt)
[](https://make-github-pseudonymous-again.github.io/js-integer/source.html)
[](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)