Skip to main content

task 5

Project description

task_5

Requirements

  • Python 3.7

This code makes use of the f"..." or f-string syntax. This syntax was introduced in Python 3.6.

Sample Execution & Output

If run without command line arguments, using

./precisionEstimate

the following usage message will be displayed.

Usage: ./estimatePrecision.py num_execs [arbitrary precision]

If run using

./precisionEstimate 1000000

output simliar to

           float|  3.7247|2.220446049250313e-16
 float-type-hint|  3.6731|2.220446049250313e-16
      Decimal-28| 31.8602|0.999999999999999999999999999

will be generated. Note that the float and float-type-hint lines may vary.


An optional precision command line argument can be supplied to change the arbitrary precision used by the Python decimal module. For example:

./precisionEstimate 1000000 16

will generate output similar to

           float| 0.3979|2.220446049250313e-16
 float-type-hint| 0.4053|2.220446049250313e-16
      Decimal-16| 3.1643|0.999999999999999

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

task5-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

task5-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file task5-0.1.0.tar.gz.

File metadata

  • Download URL: task5-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.5 Darwin/21.5.0

File hashes

Hashes for task5-0.1.0.tar.gz
Algorithm Hash digest
SHA256 225eb13747ff319a066ec8dc2b1e45ca4b42f0451771b89115e3be7836765c8d
MD5 d36e780610e6978e1a5353b7e2031293
BLAKE2b-256 ae2a962b2f1b9a241b0515e8d86a71dfe71d7557baa7401c0c87c87a48e135be

See more details on using hashes here.

File details

Details for the file task5-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: task5-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.5 Darwin/21.5.0

File hashes

Hashes for task5-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01791bd9ad1ffc9502192c8d64893db5eb36b661023830f2c2e8b9fc1978a231
MD5 ca7042ec386af38cb7980dfad213a96b
BLAKE2b-256 d86679c52140999ae6cfc5d413db661ee9905740b1a7606e131356a6d441c185

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