fracture: Convert Decimals to Fractions

Provides functions for converting decimals to a matrix of numerators and denominators or a character vector of fractions. Supports mixed or improper fractions, finding common denominators for vectors of fractions, limiting denominators to powers of ten, and limiting denominators to a maximum value. Also includes helper functions for finding the least common multiple and greatest common divisor for a vector of integers. Implemented using C++ for maximum speed.

Package details

AuthorAlexander Rossell Hayes [aut, cre, cph] (<https://orcid.org/0000-0001-9412-0457>)
MaintainerAlexander Rossell Hayes <alexander@rossellhayes.com>
LicenseMIT + file LICENSE
Version0.2.1
URL https://fracture.rossellhayes.com/ https://github.com/rossellhayes/fracture
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fracture")

Try the fracture package in your browser

Any scripts or data that you put into this service are public.

fracture documentation built on May 21, 2022, 9:05 a.m.