siggy-chardust

Rounding rationals to significant digits and decimal places. https://github.com/blockscope/flare-timing/tree/master/siggy-chardust#readme

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MPL-2.0 licensed by Phil de Joux

siggy-chardust

Rounding rationals to significant digits and decimal places.

The ‘round’ function from the prelude returns an integer. The standard librarys of C and C++ have round functions that return floating point numbers. Rounding in this library takes and returns ‘Rational’s and can round to a number of significant digits or a number of decimal places.

Changes

1.0.0

Initial version with;

  • dpRound for rounding rational numbers to decimal places.
  • sdRound for rounding rational numbers to significant digits.