Skip to content

fpCompare

Reliable Comparison of Floating Point Numbers

v0.2.4 · Aug 15, 2022 · GPL-3

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' <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.

Downloads

4.1K

Last 30 days

1959th

9.6K

Last 90 days

41.6K

Last year

Trend: +149.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (7)

suggests

Dependency Network

Dependencies Reverse dependencies SpaDES.tools bbssr intrval quickPlot reproducible twoCoprimary Require fpCompare

Version History

new 0.2.4 Mar 10, 2026
updated 0.2.4 ← 0.2.3 diff Aug 14, 2022
updated 0.2.3 ← 0.2.2 diff Sep 9, 2019
updated 0.2.2 ← 0.2.1 diff Jun 11, 2018
updated 0.2.1 ← 0.2.0 diff Aug 31, 2015
updated 0.2.0 ← 0.1.0 diff May 15, 2015
new 0.1.0 Apr 2, 2015