num 0.1.42

A collection of numeric types and traits for Rust, including bigint, complex, rational, range iterators, generic integers, and more!


crate documentation minimum rustc 1.8 Travis status

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like Integer, and generic range iterators.

num is a meta-crate, re-exporting items from these sub-crates:

There is also a proc-macro crate for deriving some numeric traits:


Add this to your Cargo.toml:

num = "0.1"

and this to your crate root:

extern crate num;


Release notes are available in


Most of the num crates are tested for rustc 1.8 and greater. The exception is num-derive which requires at least rustc 1.15.