rational_extensions

Extends num_rational::Ratio<T>.
git clone https://git.philomathiclife.com/repos/rational_extensions
Log | Files | Refs | README

README.md (389B)


      1 rational_extensions
      2 --------
      3 rational_extensions is a library that extends `num_rational::Ratio<T>`
      4 such that strings in decimal notation can be converted into such an
      5 instance. One can furthermore control the minimum and maximum number of
      6 fractional digits allowed. It also allows one to convert a `Ratio<T>`
      7 into a decimal `String` controlling how many fractional digits should be
      8 used.