Skip to main content

sys_calc

Number Conversion and IEEE 754 Representation

This project includes functions for:

  1. Converting floating-point binary numbers to decimal.
  2. Converting floating-point octal numbers to decimal.
  3. Converting floating-point hexadecimal numbers to binary.
  4. Converting floating-point numbers to hexadecimal representation in IEEE 754 format (single precision).

Usage

To use the conversion functions, simply call the respective function with the number string in the desired number system.

To convert floating-point numbers to hexadecimal representation, use float_to_hex_single(f, d), where f is the floating-point number, and d is the bias (default is 127).

Examples

binary_float_to_decimal('1101.101')
octal_float_to_decimal('17.45')
hex_to_binary('A.B')
float_to_hex_single(3.14)

Metadata

Release files for sys-calc 0.0.1

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

Source distribution (sdist)

Source distribution for sys-calc 0.0.1
File Size Uploaded
sys_calc-0.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sys-calc 0.0.1
File Interpreter ABI Platform
sys_calc-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / sys_calc-0.0.1.tar.gz

Download URL sys_calc-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5dedd2981df975a39d8c0c9e9c76dbb21cb4d795e88116923c1125b0b66224af
BLAKE2b-256 checksum
How to use checksums
eaf7bfd8536489aec78c3648a9c64335be000c5a48d1496d5163b7f3cdf2bf80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.5

Release files / sys_calc-0.0.1-py3-none-any.whl

Download URL sys_calc-0.0.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8d8be72a00c17fb3c5e1b1d0d38839ca96dc365541887a90059da8b2495007c
BLAKE2b-256 checksum
How to use checksums
dc3386e4fa3cd25ae0fdef0721f1e6acd62a1d7475e6fa9905c75b4133ef8003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.1 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