Skip to content

fix for digits="pdf" last error digits 950-999 case #65

Description

@alusiani

Hi,

the CRAN present version of the package formats with digits="pdg"

1.234 +- 0.0950  ->  1.2 +- 0.1 (expected: 1.23 +- 0.10)

In short, the case of last three digits 950-999 should format to 10 with 2 digits, and formats 1 digit instead.

I have produced here a working version: https://github.com/alusiani-forked/errors, starting from the current https://github.com/cran/errors .

If acceptable, I can propose a pull request. There are some modifications to print.R and utils.R. I have added an additional argument, that could facilitate a future extension to asking the PDG number of digits plus an extra offset. This argument does nothing now.

Cheers,

Alberto

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions