Integer::divides
method is now properly deprecated, rather than just documented so.Integer::dec
and inc
methods change the value by one.Contributors: @aobatact, @cuviper, @hkBst, @MiguelX413
Integer::next_multiple_of
and prev_multiple_of
no longer overflow -1.Integer::is_multiple_of
now handles a 0 argument without panicking for primitive integers.ExtendedGcd
no longer has any private fields, making it possible for external implementations to customize Integer::extended_gcd
.Contributors: @ciphergoth, @cuviper, @tspiteri, @WizardOfMenlo
autocfg
.Contributors: @cuviper
Average
trait computes fast integer averages, rounded up or down, without any risk of overflow.Contributors: @althonos, @cuviper
Contributors: @cuviper, @dingelish
Contributors: @cuviper
gcd
by avoiding memory swaps.lcm(0, 0)
to return 0
, rather than panicking.Integer::div_ceil
, next_multiple_of
, and prev_multiple_of
.Integer::gcd_lcm
, extended_gcd
, and extended_gcd_lcm
.Contributors: @cuviper, @ignatenkobrain, @smarnach, @strake
Roots
trait provides sqrt
, cbrt
, and nth_root
methods, calculating an Integer
's principal roots rounded toward zero.Contributors: @cuviper
i128
crate feature now causes the build script to panic if such support is not detected.Contributors: @cuviper
Integer
is now implemented for i128
and u128
starting with Rust 1.26, enabled by the new i128
crate feature.Contributors: @cuviper
Integer::is_multiple_of
std
feature, enabled by default, along with the implication that building without this feature makes this a #[no_std]
crate.Contributors: @cuviper, @jaystrictor
No prior release notes were kept. Thanks all the same to the many contributors that have made this crate what it is!