Representing rational numbers using the floating-bar number type.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE.txt
README.md

README.md

Floating Bar

Provides the floating-bar type, which allows for efficient representation of rational numbers without loss of precision. It is based on this blog post.

Use

To use this library in your code, add the following line to your Cargo.toml file under [dependencies]:

floating_bar = "0.1.0"

Contributing

Pull requests welcome! There are plenty of unimplemented!() methods that one can fill in. Make sure that the documentation matches the functionality, and to add a unit test for it. If you don't wish to write a test, just add the function for it and leave it for someone else to fill it in.

License

Licensed under the 0-clause BSD license.