fraction icon indicating copy to clipboard operation
fraction copied to clipboard

[Rust] Lossless fractions and decimals; drop-in float replacement

Results 12 fraction issues
Sort by recently updated
recently updated
newest added

I'm currently writing a basic calculator with this library and I noticed at the moment there is no .pow() or .root() style functions for fractions. Also when performing square roots...

enhancement

I need precisely the `GenericDecimal` type in my (embedded) project but unfortunately I don't have a heap available and `fraction` links towards `std`. Are there any plans to support (a...

enhancement

Now that TryFrom and TryInto are stable, the internal replacement should be deprecated in their favour, as hinted at by the documentation.

enhancement

Even though I have feature "with-serde-support" on, when I implement a struct or enum that contains DynaInt or any type that uses it and place #[derive(Serialize)] on my type I...

outlined in #100 Which character to use for the slash in output may be discussed, but I chose "FRACTION SLASH" since it's "fraction" crate.

Since Rust supports full Unicode and because of the name of this crate, I think the fraction slash `'⁄'` is a better delimiter than the solidus `'/'` for display purposes....

It would be nice to have api for directly converting to floats, since conversion cannot fail (as far as I know)

enhancement

Hi, I'm adding trigonometric functions as I need them for my project. Since try_into() isn't allowed in consts and I can't think of any other way to do different values...

I know about power and root function mentioned in https://github.com/dnsl48/fraction/issues/60 but are there any others? I'm working on something, at least for my own personal use until we come up...