Vendored version of num-rational from crates.io
  • Rust 98.2%
  • Shell 1.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Josh Stone 4d55ad22ac
Some checks failed
master / Test-1 (push) Has been cancelled
master / Test (push) Has been cancelled
Merge pull request #130 from cuviper/release-0.4.2
Release 0.4.2
2024-05-08 02:41:53 +00:00
.github/workflows Use namespaced-features to safely bump to MSRV 1.60 2024-02-07 19:16:39 -08:00
ci Use namespaced-features to safely bump to MSRV 1.60 2024-02-07 19:16:39 -08:00
src Fix clippy::manual_manual_range_contains 2024-05-07 19:22:14 -07:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
Cargo.toml Release 4.2 2024-05-07 19:33:41 -07:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
README.md Use namespaced-features to safely bump to MSRV 1.60 2024-02-07 19:16:39 -08:00
RELEASES.md Release 4.2 2024-05-07 19:33:41 -07:00

num-rational

crate documentation minimum rustc 1.60 build status

Generic Rational numbers (aka fractions) for Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
num-rational = "0.4"

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.4"
default-features = false

Releases

Release notes are available in RELEASES.md.

Compatibility

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

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.