BIG NUM MATH
Library for computations on large numbers.
- development notes:
- little plan for new functions
- upcoming optimizations (memory consumption, speed up on some computations, …)
- functions only:
- addition +substraction,
- multiplication +division
- relation and decimal relation operators
- order of magnitude
- power
- integer square root
Usage Samples
power
let row = new_from_u128;
let pow = pow;
let number = pow.to_number;
assert!;
assert_eq!;
division with remainder
let dividend = new_from_str.unwrap;
let divisor = new_from_str.unwrap;
let ratio = "242";
let remainder = "6458155929897923817932408914149323848308022388497";
let ratrem = divrem.unwrap;
assert_eq!;
assert_eq!;
let dividend = new_from_str.unwrap;
let divisor = new_from_usize;
let ratio = new_from_str.unwrap;
let remainder = new_from_usize;
let ratrem = divrem.unwrap;
assert_eq!;
assert_eq!;
decimal places relation
let number = new_from_str.unwrap;
let comparand = new_from_str.unwrap;
let decrel = rel_dec;
assert_eq!;
order of magnitude
let number_1 = new_from_u128;
let number_2 = new_from_u128;
assert_eq!;
assert_eq!;
assert_eq!;
square root
let test = new_from_str.unwrap;
let proof = new_from_u128;
assert_eq!;