Skip to content

PreciseSums

0.7

Accurate Floating Point Sums and Products

2packages depend
29.8Kdownloads / year
20.3%test coverage
13/13checks pass

Overview

About
Maintained by Matthew FidlerFirst published 2017-11-146 releasesCRAN page ↗GitHub ↗

Most of the time floating point arithmetic does approximately the right thing. When adding sums or having products of numbers that greatly differ in magnitude, the floating point arithmetic may be incorrect. This package implements the Kahan (1965) sum doi:10.1145/363707.363723, Neumaier (1974) sum doi:10.1002/zamm.19740540106, pairwise-sum (adapted from 'NumPy', See Castaldo (2008) doi:10.1137/070679946 for a discussion of accuracy), and arbitrary precision sum (adapted from the fsum in 'Python' ; Shewchuk (1997) https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf). In addition, products are changed to long double precision for accuracy, or changed into a log-sum for accuracy.

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.17
20.3%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
44%

Downloads

29.8K
CRAN downloads in the past year
Rank #2,867 · ~82/day · ~2.5K/mo
Daily download trend is not available in this view yet.
1.4K30 days
5.2K90 days
29.8K1 year
Compare downloads with other packages →
Also on908 r2u11 autocran19.9K conda_forge83 c2d4u

Repository

Repository
1Stars
0Forks
0Open issues
2Open PRs
2Releases
36Commits
1Contributors
License GPL-2.0 · 36 commits · Last activity 2026-06-15

Stars over time

2023-04-22 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/nlmixr2/precisesums on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (1)
R >= 3.2
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
2direct
17indirect

Code & Tests

People & History

People (7)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (5)
Author, Maintainer, Copyright holder
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holders (7)
Author, Maintainer, Copyright holder
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holder
Copyright holder
Package Timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.7Latest
    2024-09-18 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.6
    2023-04-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5
    2022-04-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4
    2020-07-10 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3
    2018-04-12 · diff ↗
  • 0.1
    2017-11-14
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-11-14
Total releases
6 / 9 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.2
Download size
12 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("PreciseSums")
Fidler, M., NumPy Team, Python Team, Hettinger, R., Shewchuk, J., Smith, N., & Taylor, J. (2024). PreciseSums: Accurate Floating Point Sums and Products (Version 0.7) [Computer software]. https://doi.org/10.32614/CRAN.package.PreciseSums

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for PreciseSums version 0.7 [Data set]. HJJB, LLC. Data release v2026-08-16. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-16, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy