Skip to content

fpCompare

Reliable Comparison of Floating Point Numbers

v0.2.6 · May 25, 2026 · 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

7.2K

Last 30 days

1427th

21.8K

Last 90 days

53.2K

Last year

Trend: -33.2% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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-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

8 tracked
updated 0.2.6 ← 0.2.4 diff May 26, 2026
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