big_num_math

Crates.iobig_num_math
lib.rsbig_num_math
version2.1.0
sourcesrc
created_at2024-06-01 16:26:07.092834
updated_at2024-07-13 17:18:14.10825
descriptionSimple library for computations on large numbers.
homepagehttps://github.com/bravequickcleverfibreyarn/big_num_math
repositoryhttps://github.com/bravequickcleverfibreyarn/big_num_math
max_upload_size
id1258761
size40,338
boldswiftsmartfiberhank (bravequickcleverfibreyarn)

documentation

https://docs.rs/big_num_math/latest/big_num_math/

README

BIG NUM MATH

Library for computations on large numbers.

  • Underdeveloped:

    • No plan for new functions (goniometric, radix, …).
    • Plan for optimizations (memory + speed up on some computations).
  • Primitive simple functions only: addition+substraction, multiplication+division, relation operator, power.

Example Usage

use big_num_math::{pow, PlacesRow};

let row = PlacesRow::new_from_num(u128::MAX);
let pow = pow(&row, 500);
let number = pow.to_number();

assert!(number.starts_with("8312324609993336522"));
assert_eq!(19266, number.len());
Commit count: 20

cargo fmt