MPL-2.0 licensed by Phil de Joux
Maintained by [email protected]
This version can be pinned in stack with:siggy-chardust-1.0.0@sha256:73d49e535a33226f7d924972ae052eefbb8ea9f9a8bd9acd4c981aa640bc40d1,2550

Module documentation for 1.0.0

Depends on 1 package(full list with versions):

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.