Releases: Hypercubed/as-mpz
Releases · Hypercubed/as-mpz
v2.2.0
- Feature: Implement
MpZ.asIntN
andMpZ.asUintN
. - Feature: Implement
#fact
. - Feature: Implement
MpZ.random
. - Feature: Implement
#isqrt
and#iroot
. - Feature: Implement
#log2
and#log10
. - Feature: Implement
#gcd
and#lcm
. - Improvement: Improve
#mod
performance. - Improvement: Improve
#toHex
,#toDecimal
performance. - Improvement: Improve
#add
and#sub
performance. - Bugfix: Make
#not
public.
v2.1.0
- Feature: Implement
#inc
and#dec
. - Improvement: Improve
#add
performance. - bugfix: Fix
++
and--
operators for negative numbers.
v2.0.0
2.0.0 (2024-01-27)
- Breaking: Renamed
#cmp
to#compareTo
. - Breaking: Renamed
#neg
to#negate
. - Feature: Implement
#sign
. - Feature: Implement bitshift operators (
<<
,>>
) and methods (#shiftLeft
,#shiftRight
) as "2-complement" (i.e. arithmetic) shifts. - Feature: Implement
#mul_pow2
and#div_pow2
. - Feature: Implement bitwise methods (
#and
,#or
,#xor
,#not
) and operators (&
,|
,^
,~
) as "2-complement" like. - Bugfix: Fix
toString
for negitive numbers when radix not equal to 10 or 16.