num_base

Crates.ionum_base
lib.rsnum_base
version0.4.2
sourcesrc
created_at2022-08-13 20:13:39.491135
updated_at2022-09-23 22:49:46.018431
descriptionCrate for manipulating with numbers (integers) in different bases.
homepage
repositoryhttps://codeberg.org/akytom/num_base/
max_upload_size
id645030
size34,913
Akytom (akytom)

documentation

https://docs.rs/num_base/

README

num_base

Crate for manipulating with numbers (integers) in different bases.

Quick start

use num_base::Based;

let num = Based::new("101", 10).to(2);

assert_eq!(num.val, "1100101")

Optional features

  • ops - Implementation for Add, Sub, Mul, Div and Rem.
  • cli - Install with: cargo install num_base --features cli.
Commit count: 0

cargo fmt