10 releases
Uses new Rust 2024
| 0.4.7 | Aug 29, 2025 |
|---|---|
| 0.4.6 | Aug 29, 2025 |
| 0.4.1 | Sep 13, 2023 |
| 0.4.0 | Apr 12, 2023 |
| 0.1.0 | Jan 28, 2023 |
#1296 in Math
239 downloads per month
Used in 2 crates
27KB
401 lines
This crate extends how num_rational::Ratio<T> can be converted
from a string specifically by allowing decimal notation with the
ability to constrain the minimum and maximum number of fractional
digits allowed.
rational_extensions
rational_extensions is a library that extends num_rational::Ratio<T>
such that strings in decimal notation can be converted into such an
instance. One can furthermore control the minimum and maximum number of
fractional digits allowed. It also allows one to convert a Ratio<T>
into a decimal String controlling how many fractional digits should be
used.
Dependencies
~220–435KB