20 stable releases
2.1.0 | Oct 12, 2021 |
---|---|
2.0.0 | Oct 12, 2021 |
1.3.0 | Oct 12, 2021 |
1.2.5 | Sep 22, 2021 |
0.1.0 | Sep 20, 2021 |
#731 in Science
39 downloads per month
25KB
1K
SLoC
frac
Fractional (rational) data type in Rust.
Example:
use frac::Frac;
fn main() {
let f = Frac::new(3, 4) - Frac::new(5, 6);
println!("{}", f); // -1/12
}
LICENSE: BSD 3-Clause
Current Version: 2.1.0
Contributors:
Links
Crates.io
Docs.rs
GitHub
lib.rs
:
Rational Data Type
This crate provides the Frac
(fractional) data type, which represents a
rational number.