Crates.io | big_num_math |
lib.rs | big_num_math |
version | 2.1.0 |
source | src |
created_at | 2024-06-01 16:26:07.092834 |
updated_at | 2024-07-13 17:18:14.10825 |
description | Simple library for computations on large numbers. |
homepage | https://github.com/bravequickcleverfibreyarn/big_num_math |
repository | https://github.com/bravequickcleverfibreyarn/big_num_math |
max_upload_size | |
id | 1258761 |
size | 40,338 |
Library for computations on large numbers.
Underdeveloped:
Primitive simple functions only: addition+substraction, multiplication+division, relation operator, power.
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());