num-bigint icon indicating copy to clipboard operation
num-bigint copied to clipboard

Big integer types for Rust

Results 78 num-bigint issues
Sort by recently updated
recently updated
newest added

The results of the default bencher are quite unstable(in successive benchmarks run without any other open programs, there were 10 % differences in the same test when comparing with `benchcmp`)....

enhancement
help wanted

This afternoon I tried updating some of my numerical code (Project Euler stuff) to use the master branch of `num-bigint` for pre-release testing. Some of the changes needed are expected,...

It would be great to allow for `BigInt` and alike to be used in constant expressions. This is not possible with `Vec`, but if we use `SmallVec` instead, we might...

enhancement
help wanted

Implement better multiplication for large numbers. Multiplication currently uses Toom-3, which is O(n^1.47) for n BigDigits. This can be improved to O(n log n) using the Fast Fourier Transform (on...

Things like `impl BitAndAssign for BigInt` are missing.

Implements https://github.com/rust-num/num/issues/404

I know this impl is a little strange, but I have a use case and a rationale. So, I have a function that takes any `T: Into + ToPrimitive`. It...

Currently, operations on `BigInt` such as `add_assign` is not done in-place, but with the following implementation: ```rust #[inline] fn add_assign(&mut self, other: &BigInt) { let n = mem::replace(self, BigInt::zero()); *self...

https://docs.rs/num-bigint/0.3.1/num_bigint/struct.BigInt.html?search=not Seems like there is only an implementation of `not` for `BigInt`.

I would like to request a way to convert a bigint into a smaller primitive, saturating at MAX_VALUE or MIN_VALUE if needed.