A package to handle binary fractions
Project description
Binary fractions
This is really small package to handle binary fractions.
It has 2 functions:
- float2bin, which converts floats to binary fractions represented in strings
- bin2float, which converts binary fractions represented in strings to floats
valid binary fraction: "100111.110001"
float2bin:
arguments: (float_number: float)
optional_argument: (binary_places: int) # This specifies the precision of the returned bin. Default 50
bin2float:
arguments: (bin_number: string)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file binary_fractions-0.0.2.tar.gz
.
File metadata
- Download URL: binary_fractions-0.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d570b8949c729aec2adfd93e67d108a84cbfe3c153991abef1503591518842 |
|
MD5 | a0a6d960cf2d65e0d13825fe9efafd59 |
|
BLAKE2b-256 | 380d423ebfc7f0824a920d3fa886b0ad81db2f465e8172065cc8b62d43cd8e80 |