rossellhayes / fracture

Convert decimals to fractions in R
https://fracture.rossellhayes.com/
Other
23 stars 2 forks source link

Export irrational constants #16

Open rossellhayes opened 2 years ago

rossellhayes commented 2 years ago

This PR adds the irrational constants e and phi as exported objects from fracture

library(fracture)

e
#> [1] 2.718282
fracture(e, max_denom = 100)
#> [1] 193/71

phi
#> [1] 1.618034
fracture(phi, max_denom = 100)
#> [1] 144/89

Created on 2022-03-13 by the reprex package (v2.0.1)

TODO:

codecov[bot] commented 2 years ago

Codecov Report

Merging #16 (f163ab3) into main (fce9853) will not change coverage. The diff coverage is n/a.

:exclamation: Current head f163ab3 differs from pull request most recent head 6dfa18a. Consider uploading reports for the commit 6dfa18a to get more accurate results

@@            Coverage Diff            @@
##              main       #16   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          281       281           
=========================================
  Hits           281       281           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fce9853...6dfa18a. Read the comment docs.