#mathematics #numerics

num-rational

Rational numbers implementation for Rust

11 releases

0.2.1 Jun 23, 2018
0.1.42 Feb 9, 2018
0.1.40 Nov 8, 2017
0.1.39 Jul 15, 2017
0.1.32 Apr 14, 2016

#6 in Math

Download history 7752/week @ 2018-05-06 10409/week @ 2018-05-13 9967/week @ 2018-05-20 9908/week @ 2018-05-27 10537/week @ 2018-06-03 11332/week @ 2018-06-10 9998/week @ 2018-06-17 9340/week @ 2018-06-24 11341/week @ 2018-07-01 10439/week @ 2018-07-08 11773/week @ 2018-07-15 11035/week @ 2018-07-22 9529/week @ 2018-07-29

44,028 downloads per month

num-rational

crate documentation minimum rustc 1.15 Travis status

Generic Rational numbers for Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
num-rational = "0.2"

and this to your crate root:

extern crate num_rational;

Features

This crate can be used without the standard library (#![no_std]) by disabling the default std feature. Use this in Cargo.toml:

[dependencies.num-rational]
version = "0.2"
default-features = false

Implementations for i128 and u128 are only available with Rust 1.26 and later. The build script automatically detects this, but you can make it mandatory by enabling the i128 crate feature.

Releases

Release notes are available in RELEASES.md.

Compatibility

The num-rational crate is tested for rustc 1.15 and greater.

MIT/Apache-2.0 license

Dependencies

  • build build.rs

Reverse deps