Skip to main content

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

Release files for task5 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for task5 0.1.0
File Size Uploaded
task5-0.1.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for task5 0.1.0
File Interpreter ABI Platform
task5-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / task5-0.1.0.tar.gz

Download URL task5-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
225eb13747ff319a066ec8dc2b1e45ca4b42f0451771b89115e3be7836765c8d
BLAKE2b-256 checksum
How to use checksums
ae2a962b2f1b9a241b0515e8d86a71dfe71d7557baa7401c0c87c87a48e135be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.5 Darwin/21.5.0

Release files / task5-0.1.0-py3-none-any.whl

Download URL task5-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01791bd9ad1ffc9502192c8d64893db5eb36b661023830f2c2e8b9fc1978a231
BLAKE2b-256 checksum
How to use checksums
d86679c52140999ae6cfc5d413db661ee9905740b1a7606e131356a6d441c185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.5 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page