Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@aureooms/js-integer

aureooms18AGPL-3.010.0.1

Integers for JavaScript

abitrary, addition, algorithm, arithmetic, big, big-int, big-integer, big-integers, big-num, big-number, big-numbers, bigint, biginteger, bigintegers, bignum, bignumber, bignumbers, bn, bn.js, complexity, division, exact, exponentiation, gcd, integer, javascript, js, jsbn, library, logic, mpa, multi-precision, multiplication, number, precision, subtraction

readme

:zzz: @aureooms/js-integer

The Zahlen symbol
User:Alejo2083 / CC BY-SA 3.0

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'

License Version Build Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

:baby: Children

The current underlying implementation uses big endian order. There is no alternative for the moment.

:scroll: Reference