@hackage / siggy-chardust

Rounding rationals to significant digits and decimal places.

Latest1.0.0

About

Metadata

  • Last updated , by philderbeast
  • License MPL-2.0
  • Categories Mathematics
  • Maintained by: phil.dejoux@blockscope.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.2.2

Readme

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.