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' <http://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.

Total

38,744

Last month

1,345

Last week

199

Average per day

45

Daily downloads

Total downloads

Description file content

Package
fpCompare
Type
Package
Title
Reliable Comparison of Floating Point Numbers
URL
Version
0.2.2
Date
2018-06-07
Description
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' ). This package provides new relational operators useful for performing floating point number comparisons with a set tolerance.
Depends
R (>= 3.1.0)
Suggests
knitr, rmarkdown, testthat
License
GPL-3
VignetteBuilder
knitr
ByteCompile
yes
BugReports
https://github.com/PredictiveEcology/fpCompare/issues
RoxygenNote
6.0.1
NeedsCompilation
no
Packaged
2018-06-07 15:36:43 UTC; achubaty
Author
Alex M Chubaty [aut, cre], Her Majesty the Queen in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]
Maintainer
Alex M Chubaty
Repository
CRAN
Date/Publication
2018-06-12 10:33:58 UTC

install.packages('fpCompare')

0.2.2

5 months ago

https://github.com/PredictiveEcology/fpCompare

Alex M Chubaty

GPL-3

Depends on

R (>= 3.1.0)

Suggests

knitr, rmarkdown, testthat

Discussions