💤 @aureooms/js-integer
Integers for JavaScript. See docs. Parent is @aureooms/js-algorithms.
import { ZZ } from '@aureooms/js-integer' ;
const a = ZZ.from( '2983928392839289387' ) ;
const b = ZZ.from( '-302940923028393' ) ;
a.mul( b ).toString( ) ; // '-903954021577363596419770144565091'
👶 Children
The current underlying implementation uses big endian order. There is no alternative for the moment.
📜 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