libbeef 0.1.0

A Rust translation of Fabrice Bellard's libbf arbitrary precision numeric library.
Documentation
1
2
3
4
5
6
7
8
9
10
use num_bigint::BigUint;

fn main() {
    // num-bigint is an integer library, so we demonstrate the equivalent
    // integer multiply that the benchmark measures (no trig available).
    let a = "314159265358979323846".parse::<BigUint>().unwrap();
    let b = "271828182845904523536".parse::<BigUint>().unwrap();
    let product = a * b;
    println!("{product}");
}