big-rational-str

Crate for formatting and parsing BigRationals (of the popular 'num' crate) in decimal form.

Converts fractions to decimal strings and vice versa

|BigRational |String | |--- |--- | |1/3 |"0.(3)" | |-93/52 |"-1.78(846153)" | |30/4 |"7.5" | |550/-1 |"-550" |

Usage

```rust use bigrationalstr::*;

fn main() { let bigrational = strtobigrational("3.(3)").unwrap(); println!("{}", bigrationaltostring(bigrational));

let big_rational2 = BigRational::from_dec_str("3.(3)").unwrap();
println!("{}", big_rational2.to_dec_string());

} ```