Skip to content

Version 0.1.2

Compare
Choose a tag to compare
@rossellhayes rossellhayes released this 09 Sep 00:46

New features

  • Added frac_style() which formats fractures using Unicode superscripts and subscripts.
  • Added is.frac_mat() which tests if a matrix is formatted like the output of frac_mat().

Bug fixes

  • Fixed bug where certain fractions (e.g. 16/113, frac_mat(1307.36, base_10 = TRUE)) would cause an floating point rounding error.
    • Reimplemented decimal_to_fraction_cont() and decimal_to_fraction_base_10() with double rather than int.
    • Added tests to cover all fractions below 1000/1000 (reduced to 100/100 when testing on CRAN), all base_10 fractions below 10,000/10,000 (100/100 on CRAN) and a random sample fractions below 10,000,000/10,000,000.
  • Fixed bug with fracture math where only the first element would be returned.
  • Added error handling for NA and infinite inputs to frac_mat().

Documentation

  • Added pkgdown site.
  • frac_mat()'s max_denom should be less than the inverse square root of machine double epsilon.