num-integer
Integer traits and functions
0.1.47
638M downloads/mo
#141 most downloaded on crates.io
rust-num/num-integer
What this package is like to depend on
Last release 11 days ago
12 Aug 2026
Release timing varies
gaps range from 6 weeks to 2.5 years
Most releases are documented
notes for 12 of 16 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
16 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
16 releases · Apr 2016 to Aug 2026Releases
latest 16-
0.1.4712 Aug 2026Release notes
Open source →- Implement Karatsuba Square Root for 128-bit
Roots::sqrt - Miscellaneous other improvements to docs and testing.
Contributors: @durin42, @cuviper, @mikem8891
- Implement Karatsuba Square Root for 128-bit
-
0.1.4608 Feb 2024Release notes
Open source →- Upgrade to 2018 edition, MSRV 1.31
- The
Integer::dividesmethod is now properly deprecated, rather than just documented so. - The new
Integer::decandincmethods change the value by one.
Contributors: @aobatact, @cuviper, @hkBst, @MiguelX413
-
0.1.4529 Apr 2022Release notes
Open source →Integer::next_multiple_ofandprev_multiple_ofno longer overflow -1.Integer::is_multiple_ofnow handles a 0 argument without panicking for primitive integers.ExtendedGcdno longer has any private fields, making it possible for external implementations to customizeInteger::extended_gcd.
Contributors: @ciphergoth, @cuviper, @tspiteri, @WizardOfMenlo
-
0.1.4429 Oct 2020Release notes
Open source →- The "i128" feature now bypasses compiler probing. The build script
used to probe anyway and panic if requested support wasn't found, but
sometimes this ran into bad corner cases with
autocfg.
Contributors: @cuviper
- The "i128" feature now bypasses compiler probing. The build script
used to probe anyway and panic if requested support wasn't found, but
sometimes this ran into bad corner cases with
-
0.1.4312 Jun 2020Release notes
Open source →- The new
Averagetrait computes fast integer averages, rounded up or down, without any risk of overflow.
Contributors: @althonos, @cuviper
- The new
-
0.1.4210 Jan 2020 -
0.1.4122 May 2019 -
0.1.4020 May 2019Release notes
Open source →- Optimized primitive
gcdby avoiding memory swaps. - Fixed
lcm(0, 0)to return0, rather than panicking. - Added
Integer::div_ceil,next_multiple_of, andprev_multiple_of. - Added
Integer::gcd_lcm,extended_gcd, andextended_gcd_lcm.
Contributors: @cuviper, @ignatenkobrain, @smarnach, @strake
- Optimized primitive
-
0.1.3921 Jun 2018Release notes
Open source →- The new
Rootstrait providessqrt,cbrt, andnth_rootmethods, calculating anInteger's principal roots rounded toward zero.
Contributors: @cuviper
- The new
-
0.1.3811 May 2018Release notes
Open source →- Support for 128-bit integers is now automatically detected and enabled.
Setting the
i128crate feature now causes the build script to panic if such support is not detected.
Contributors: @cuviper
- Support for 128-bit integers is now automatically detected and enabled.
Setting the
-
0.1.3710 May 2018Release notes
Open source →Integeris now implemented fori128andu128starting with Rust 1.26, enabled by the newi128crate feature.
Contributors: @cuviper
-
0.1.3607 Feb 2018Release notes
Open source →- num-integer now has its own source repository at rust-num/num-integer.
- Corrected the argument order documented in
Integer::is_multiple_of - There is now a
stdfeature, enabled by default, along with the implication that building without this feature makes this a#[no_std]crate.- There is no difference in the API at this time.
Contributors: @cuviper, @jaystrictor
-
0.1.3515 Jul 2017Nothing published for this version
-
0.1.3409 Apr 2017Nothing published for this version
-
0.1.3326 Feb 2017Nothing published for this version
-
0.1.3214 Apr 2016Nothing published for this version