Rounding rationals to significant digits and decimal places. https://github.com/blockscope/flare-timing/tree/master/siggy-chardust#readme
|LTS Haskell 15.13:||[email protected]:1|
|Stackage Nightly 2020-05-23:||[email protected]:1|
|Latest on Hackage:||[email protected]:1|
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.
Initial version with;
dpRoundfor rounding rational numbers to decimal places.
sdRoundfor rounding rational numbers to significant digits.