| Crates.io | num_base |
| lib.rs | num_base |
| version | 0.4.2 |
| created_at | 2022-08-13 20:13:39.491135+00 |
| updated_at | 2022-09-23 22:49:46.018431+00 |
| description | Crate for manipulating with numbers (integers) in different bases. |
| homepage | |
| repository | https://codeberg.org/akytom/num_base/ |
| max_upload_size | |
| id | 645030 |
| size | 34,913 |
Crate for manipulating with numbers (integers) in different bases.
use num_base::Based;
let num = Based::new("101", 10).to(2);
assert_eq!(num.val, "1100101")
ops - Implementation for Add, Sub, Mul, Div and Rem.cli - Install with: cargo install num_base --features cli.