fpCompare: Reliable Comparison of Floating Point Numbers

Comparisons of floating point numbers are problematic due to errors associated with the binary representation of decimal numbers. Despite being aware of these problems, people still use numerical methods that fail to account for these and other rounding errors (this pitfall is the first to be highlighted in Circle 1 of Burns (2012) 'The R Inferno' <https://www.burns-stat.com/pages/Tutor/R_inferno.pdf>). This package provides new relational operators useful for performing floating point number comparisons with a set tolerance.

Package details

AuthorAlex M Chubaty [aut, cre] (<https://orcid.org/0000-0001-7146-8135>), Her Majesty the Queen in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]
MaintainerAlex M Chubaty <achubaty@for-cast.ca>
LicenseGPL-3
Version0.2.4
URL https://github.com/PredictiveEcology/fpCompare
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fpCompare")

Try the fpCompare package in your browser

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

fpCompare documentation built on Aug. 15, 2022, 9:06 a.m.