Skip to content

PreciseSums

0.7Package record

Accurate Floating Point Sums and Products

2packages dependsuggested by 1
22.7Kdownloads / year
20.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.7
  • Created a new non-binary linkage method with 'PreciseSumsPtr.h' in addition to 'PreciseSums.h'. To break binary package dependencies, the rxode2 internals use the function pointers, while the models built by rxode2 use the binary linkage.
  • As requested by CRAN use strict headers.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.7
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structured · mentions 0.7Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
9 (1 internal)
Examples that run
100%4 run in a plain check
Exported functions with examples
44%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
44%

Downloads

22.7K
CRAN downloads in the past year
Rank #2,910 · ~62/day · ~1.9K/mo
Daily download trend is not available in this view yet.
2K30 days
4.9K90 days
22.7K1 year
Compare downloads with other packages →
Also on1.1K r2u2 autocran22.1K conda_forge134 c2d4u

Repository

1Stars
0Forks
0Open issues
3Open PRs
2Releases
38Commits
2Commit identities
License file reads as GPL-2.0 · 38 commits · Last activity 2026-08-27 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

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

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

Checks run against github.com/nlmixr2/precisesums on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-27
    Pull request it wrote: opened by a project member
    Commits: at least 1 crediting it in the message
Models named in its commits
  • Claude Opus 51 commit · Aug 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing PreciseSums adds no packages beyond those that come with R.

Depends (1)
R >= 3.2
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
2direct
20indirect
Imports 2 · LinkingTo 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (7)
Author, Maintainer since 0.1 (2017), Copyright holder
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holder, Author
Copyright holder
Copyright holder
Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.7Latest
    record
    2024-09-18 · current release · diff ↗ ·
    added 1 export
    .preciseSumsPtr
  • R
    R 4.4.0 released · 2024-04-24
  • 0.6
    record
    2023-04-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5
    record
    2022-04-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4
    record
    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
    record
    2018-04-12 · diff ↗
  • 0.1
    record
    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

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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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