Open janus opened 3 years ago
It means your num_bigint
dependency version doesn't match the indirect dependency used by your version of num_rational
. The compiler treats different versions as completely distinct types. You can run cargo tree
to see which is which.
You should make sure both dependencies are updated to their latest version in your Cargo.toml
.
@cuviper Thanks so much for this command cargo tree
. But is there a way to know the number of bits in BigRational
?
You can call .numer()
and .denom()
to access each BigInt
part, then call .bits()
on those.
What could be causing the below? I have not been able to figure if there is another crate with same name.
use num_bigint::{BigUint, BigInt};
use num_rational::BigRational;