Arbitrary precision integer library for AssemblyScript.
MIT License
Bot releases are hidden (Show)
#inc
and #dec
.#add
performance.++
and --
operators for negative numbers.Published by Hypercubed 8 months ago
MpZ.asIntN
and MpZ.asUintN
.#fact
.MpZ.random
.#isqrt
and #iroot
.#log2
and #log10
.#gcd
and #lcm
.#mod
performance.#toHex
, #toDecimal
performance.#add
and #sub
performance.#not
public.Published by Hypercubed 9 months ago
#cmp
to #compareTo
.#neg
to #negate
.#sign
.<<
, >>
) and methods (#shiftLeft
, #shiftRight
) as "2-complement" (i.e. arithmetic) shifts.#mul_pow2
and #div_pow2
.#and
, #or
, #xor
, #not
) and operators (&
, |
, ^
, ~
) as "2-complement" like.toString
for negitive numbers when radix not equal to 10 or 16.