@arithmetic-operations-for/naturals-big-endian
Version:
Arbitrary precision arithmetic for integers in big endian order for JavaScript
37 lines (29 loc) • 3.34 kB
Markdown
:elephant: [@arithmetic-operations-for/naturals-big-endian](https://arithmetic-operations-for.github.io/naturals-big-endian)
==
<img src="https://upload.wikimedia.org/wikipedia/commons/5/54/Big-Endian.svg" width="864">
Arbitrary precision arithmetic for integers in big endian order.
See [docs](https://arithmetic-operations-for.github.io/naturals-big-endian).
Twin project of [@arithmetic-operations-for/naturals-little-endian](https://github.com/arithmetic-operations-for/naturals-big-endian).
```js
import {parse, stringify, translate} from '@arithmetic-operations-for/naturals-big-endian';
parse(16, 100, 'ff'); // [ 2 , 55 ]
stringify(100, 16, [2, 55]); // 'ff'
translate(10, 16, '255'); // 'ff'
```
[](https://raw.githubusercontent.com/arithmetic-operations-for/naturals-big-endian/main/LICENSE)
[](https://www.npmjs.org/package/@arithmetic-operations-for/naturals-big-endian)
[](https://github.com/arithmetic-operations-for/naturals-big-endian/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/arithmetic-operations-for/naturals-big-endian/network/dependencies)
[](https://github.com/arithmetic-operations-for/naturals-big-endian/issues)
[](https://www.npmjs.org/package/@arithmetic-operations-for/naturals-big-endian)
[](https://codeclimate.com/github/arithmetic-operations-for/naturals-big-endian/issues)
[](https://codeclimate.com/github/arithmetic-operations-for/naturals-big-endian/trends/churn)
[](https://codecov.io/gh/arithmetic-operations-for/naturals-big-endian)
[](https://codeclimate.com/github/arithmetic-operations-for/naturals-big-endian/trends/technical_debt)
[](https://arithmetic-operations-for.github.io/naturals-big-endian/source.html)
[](https://bundlephobia.com/result?p=@arithmetic-operations-for/naturals-big-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
- http://bioinfo.ict.ac.cn/~dbu/AlgorithmCourses/Lectures/Hasselstrom2003.pdf