infp


Nameinfp JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryAdd, Multiply, Mod, Divide Large number
upload_time2024-01-15 03:55:49
maintainer
docs_urlNone
authorVu Diep
requires_python
license
keywords python data structure math big number infinite precision
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Infinite Precision
Adding big big number!!

# Usage

```python
from infp import BigNumber

num1 = BigNumber("1648976548.65498")
num2 = BigNumber("-4564984945.654")
sum = num1 + num2       # -2916008396.99902
print(sum)      
num1 = BigNumber("10")
num2 = BigNumber("10")
sub = num1 - num2
print(sub)              # 0
ans = BigNumber("132") / BigNumber("132")
print(ans)              # 1

```

# Unit Test

* Install pytest if haven't

```
pip install pytest
```

* Run test command

```
pytest
```

# Run the main program example
```
python main.py
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "infp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,data structure,math,big number,infinite precision",
    "author": "Vu Diep",
    "author_email": "vudiep411@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/27/d3/7187a9e1b1b8690781b4c2699abb29774a1baca33d3af396f0472d94c7d8/infp-0.0.3.tar.gz",
    "platform": null,
    "description": "# Infinite Precision\nAdding big big number!!\n\n# Usage\n\n```python\nfrom infp import BigNumber\n\nnum1 = BigNumber(\"1648976548.65498\")\nnum2 = BigNumber(\"-4564984945.654\")\nsum = num1 + num2       # -2916008396.99902\nprint(sum)      \nnum1 = BigNumber(\"10\")\nnum2 = BigNumber(\"10\")\nsub = num1 - num2\nprint(sub)              # 0\nans = BigNumber(\"132\") / BigNumber(\"132\")\nprint(ans)              # 1\n\n```\n\n# Unit Test\n\n* Install pytest if haven't\n\n```\npip install pytest\n```\n\n* Run test command\n\n```\npytest\n```\n\n# Run the main program example\n```\npython main.py\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Add, Multiply, Mod, Divide Large number",
    "version": "0.0.3",
    "project_urls": null,
    "split_keywords": [
        "python",
        "data structure",
        "math",
        "big number",
        "infinite precision"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d22a0c1957f20ae00f4dcde5b6fb6237b8762476665386c56298bd66dc3e30b1",
                "md5": "87f91b0d15625ccca39d271b372f85f3",
                "sha256": "350856d7595196aade5d25d7568cb1dd0cdea192067a2e45059eff9e187f2687"
            },
            "downloads": -1,
            "filename": "infp-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87f91b0d15625ccca39d271b372f85f3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3419,
            "upload_time": "2024-01-15T03:55:48",
            "upload_time_iso_8601": "2024-01-15T03:55:48.264365Z",
            "url": "https://files.pythonhosted.org/packages/d2/2a/0c1957f20ae00f4dcde5b6fb6237b8762476665386c56298bd66dc3e30b1/infp-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "27d37187a9e1b1b8690781b4c2699abb29774a1baca33d3af396f0472d94c7d8",
                "md5": "1a48d4bffdd912a41ed8617bc3791775",
                "sha256": "8946b60aad0b85e088dfcba46affa51bd32c2b043e44e224a433b17c81b1e942"
            },
            "downloads": -1,
            "filename": "infp-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1a48d4bffdd912a41ed8617bc3791775",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3901,
            "upload_time": "2024-01-15T03:55:49",
            "upload_time_iso_8601": "2024-01-15T03:55:49.662884Z",
            "url": "https://files.pythonhosted.org/packages/27/d3/7187a9e1b1b8690781b4c2699abb29774a1baca33d3af396f0472d94c7d8/infp-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-15 03:55:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "infp"
}
        
Elapsed time: 0.90116s