Skip to main content

Rounds a measurement value and its uncertainty to a specified number of significant digits.

Project description

Rounds a measurement value

Rounds a measurement value and its uncertainty to a specified number of significant digits.

Examples:

    >>> precise_rounding(123.45678, 0.01234)
    ('123.457', '0.013')

    >>> precise_rounding(123.45678, 0.515, 1)
    ('123.5', '0.6')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

precise_rounding-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file precise_rounding-0.1.3.tar.gz.

File metadata

  • Download URL: precise_rounding-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for precise_rounding-0.1.3.tar.gz
Algorithm Hash digest
SHA256 30206041afbf28862725613cf3aae7cb2bb8d2baaa4bb818c8f9b4ce98b9dc75
MD5 5bcf6b74fa46097aa7a812505e783f5d
BLAKE2b-256 ace7613711bd1e2a2d9e2283b2efb89eff66d6a8cbe588e78ce38f7b6023f9b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page