Big integer library.
The library implements arbitrarily large integer arithmetic in pure Rust.
The two integer types are UBig
(for unsigned integers) and IBig
(for signed integers).
```rust use ibig::prelude::*;
let a = ubig!(12345678); let b = ubig!(0x10ff); let c = ibig!(-azz base 36); let d: UBig = "15033211231241234523452345345787".parse()?;
asserteq!(c.tostring(), "-14255"); asserteq!( (a * b.pow(10)).inradix(16).tostring(), "1589bda8effbfc495d8d73c83d8b27f94954e" ); asserteq!( format!("hello {:#x}", d % ubig!(0xabcd1234134132451345)), "hello 0x1a7e7c487267d2658a93" ); ```