@arithmetic-operations-for/naturals-big-endian
v12.0.0
Published
Arbitrary precision arithmetic for integers in big endian order for JavaScript
Downloads
43
Maintainers
Readme
:elephant: @arithmetic-operations-for/naturals-big-endian
Arbitrary precision arithmetic for integers in big endian order. See docs. Twin project of @arithmetic-operations-for/naturals-little-endian.
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'
:scroll: Reference
- The GNU Multiple Precision Arithmetic Library
- 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