nonsmallnum 0.0.7-alpha.3

Basic arithmetic for unsigned arbitrarily-sized integers in pure Rust
Documentation

Build Status crates.io

rust-nonsmallint

Basic arithmetic for unsigned arbitrarily-sized integers in pure Rust

Usage

Add it to your project dependencies in Cargo.toml:

[dependencies]
nonsmallnum = "0.0.6"

Examples

extern crate nonsmallnum;
use nonsmallnum::NonSmallInt;

fn main() {
    let x = NonSmallInt::parse("4236523").expect("Failed to parse a non-small number");
    let y = NonSmallInt::of(43);

    println!("{} + {} == {}", x, y, &x + &y);
    println!("{} - {} == {}", x, y, &x - &y);
    println!("{} * {} == {}", x, y, &x * &y);
    println!("{} / {} == {}", x, y, &x / &y);
    println!("{} % {} == {}", x, y, &x % &y);
    println!("{} < {} == {}", x, y, &x < &y);
}

API Doc

You can find API doc of the latest release here.