Crates.io | frac |
lib.rs | frac |
version | 2.1.0 |
source | src |
created_at | 2021-09-20 21:41:06.193636 |
updated_at | 2021-10-12 20:07:25.03386 |
description | Rational Number Data Type |
homepage | https://github.com/nekodjin/frac |
repository | https://github.com/nekodjin/frac |
max_upload_size | |
id | 454162 |
size | 25,087 |
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
}
2.1.0