dashu-ratio

Crates.iodashu-ratio
lib.rsdashu-ratio
version0.4.1
sourcesrc
created_at2022-11-10 05:30:10.549531
updated_at2024-01-12 13:32:10.084567
descriptionA big rational library with good performance
homepagehttps://github.com/cmpute/dashu
repositoryhttps://github.com/cmpute/dashu
max_upload_size
id709243
size213,526
Jacob Zhong (cmpute)

documentation

https://docs.rs/dashu-ratio

README

dashu-ratio

Arbitrary precision rational implementation as a part of the dashu library. See Docs.rs for the full documentation.

Features

  • Supports no_std and written in pure Rust.
  • Support a relaxed verion of rational numbers for fast computation.
  • Support for Diophantine Approximation of floating point numbers.
  • Rational numbers with small numerators and denominators are inlined on stack.
  • Efficient integer parsing and printing with base 2~36.
  • Developer friendly debug printing for float numbers.

Optional dependencies

  • std (default): enable std support for dependencies.

Performance

Relevant benchmark will be implemented in the built-in benchmark.

License

See the top-level readme.

Commit count: 285

cargo fmt