feat: add uint

This commit is contained in:
2021-01-30 10:55:42 +08:00
parent 6769322905
commit 452b41d51a
3 changed files with 104 additions and 0 deletions

9
__misc/uint/src/main.rs Normal file
View File

@@ -0,0 +1,9 @@
use num_bigint::BigUint;
use num_traits::{Zero, One};
fn main() {
let a: BigUint = Zero::zero();
let b: BigUint = One::one();
let c = a.clone() + &b;
println!("{}+{}={}", a, b, c);
}