sys-calc


Namesys-calc JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/S4CBS/sys_calc
SummaryThis is the simplest module for quick work with float - bin,oct,hex.
upload_time2024-05-20 17:30:53
maintainerNone
docs_urlNone
authorS4CBS
requires_python>=3.6
licenseNone
keywords sys_calc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/S4CBS/sys_calc",
    "name": "sys-calc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "sys_calc",
    "author": "S4CBS",
    "author_email": "aap200789@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ea/f7/bfd8536489aec78c3648a9c64335be000c5a48d1496d5163b7f3cdf2bf80/sys_calc-0.0.1.tar.gz",
    "platform": null,
    "description": "# sys_calc\r\n# Number Conversion and IEEE 754 Representation\r\n\r\nThis project includes functions for:\r\n\r\n1. Converting floating-point binary numbers to decimal.\r\n2. Converting floating-point octal numbers to decimal.\r\n3. Converting floating-point hexadecimal numbers to binary.\r\n4. Converting floating-point numbers to hexadecimal representation in IEEE 754 format (single precision).\r\n\r\n## Usage\r\n\r\nTo use the conversion functions, simply call the respective function with the number string in the desired number system.\r\n\r\nTo 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).\r\n\r\n## Examples\r\n\r\n```python\r\nbinary_float_to_decimal('1101.101')\r\noctal_float_to_decimal('17.45')\r\nhex_to_binary('A.B')\r\nfloat_to_hex_single(3.14)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This is the simplest module for quick work with float - bin,oct,hex.",
    "version": "0.0.1",
    "project_urls": {
        "GitHub": "https://github.com/S4CBS/sys_calc",
        "Homepage": "https://github.com/S4CBS/sys_calc"
    },
    "split_keywords": [
        "sys_calc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc3386e4fa3cd25ae0fdef0721f1e6acd62a1d7475e6fa9905c75b4133ef8003",
                "md5": "b342a36d7568e98525b98f9182fceb8e",
                "sha256": "b8d8be72a00c17fb3c5e1b1d0d38839ca96dc365541887a90059da8b2495007c"
            },
            "downloads": -1,
            "filename": "sys_calc-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b342a36d7568e98525b98f9182fceb8e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3016,
            "upload_time": "2024-05-20T17:30:52",
            "upload_time_iso_8601": "2024-05-20T17:30:52.352264Z",
            "url": "https://files.pythonhosted.org/packages/dc/33/86e4fa3cd25ae0fdef0721f1e6acd62a1d7475e6fa9905c75b4133ef8003/sys_calc-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eaf7bfd8536489aec78c3648a9c64335be000c5a48d1496d5163b7f3cdf2bf80",
                "md5": "e1db0120f8231debf31fbf0dd9af4971",
                "sha256": "5dedd2981df975a39d8c0c9e9c76dbb21cb4d795e88116923c1125b0b66224af"
            },
            "downloads": -1,
            "filename": "sys_calc-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e1db0120f8231debf31fbf0dd9af4971",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2953,
            "upload_time": "2024-05-20T17:30:53",
            "upload_time_iso_8601": "2024-05-20T17:30:53.771501Z",
            "url": "https://files.pythonhosted.org/packages/ea/f7/bfd8536489aec78c3648a9c64335be000c5a48d1496d5163b7f3cdf2bf80/sys_calc-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-20 17:30:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "S4CBS",
    "github_project": "sys_calc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sys-calc"
}
        
Elapsed time: 0.61239s