numerals 0.1.1

Library for numeric systems, both ancient and modern
Documentation

rust-numerals Build Status

This is a library for various numeric systems, including ancient, modern, and just plain strange.

Although the Roman module is likely to be the most popular, I maintain an interest in the others, so they're all packaged as one!

View the Rustdoc

Installation

This library uses Cargo. Just add numerals as a dependency in your Cargo.toml:

[dependencies]
numerals = "*"

or

[dependencies]
git = "https://github.com/ogham/rust-numerals.git"

Roman

use numerals::roman::Roman;
let string = format!("{:X}", Roman::from(134));
assert_eq!(string, "CXXXIV");