numbers-almost-equal


Namenumbers-almost-equal JSON
Version 0.11 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/numbers_almost_equal
SummaryChecks if 2 numbers are almost equal
upload_time2023-01-05 03:56:49
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords numbers equal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Checks if 2 numbers (int) are almost equal

```python

from numbers_almost_equal import (
are_numbers_equal,
are_numbers_equal_diff_0_00000001,
are_numbers_equal_diff_0_0000001,
are_numbers_equal_diff_0_000001,
are_numbers_equal_diff_0_00001,
are_numbers_equal_diff_0_0001,
are_numbers_equal_diff_0_001,
are_numbers_equal_diff_0_01,
are_numbers_equal_diff_0_1,
are_numbers_equal_diff_10,
are_numbers_equal_diff_100,
are_numbers_equal_diff_1000,
are_numbers_equal_diff_10000,
are_numbers_equal_diff_100000,
are_numbers_equal_diff_1000000,
are_numbers_equal_diff_10000000,
are_numbers_equal_diff_100000000,)

are_numbers_equal_diff_0_1(number1=0.1, number2=0.2)=True
are_numbers_equal_diff_0_1(number1=0.1, number2=2)=False
are_numbers_equal_diff_0_01(number1=0.01, number2=0.02)=True
are_numbers_equal_diff_0_01(number1=0.01, number2=0.2)=False
are_numbers_equal_diff_0_001(number1=0.001, number2=0.002)=True
are_numbers_equal_diff_0_001(number1=0.001, number2=0.02)=False
are_numbers_equal_diff_0_0001(number1=0.0001, number2=0.0002)=True
are_numbers_equal_diff_0_0001(number1=0.0001, number2=0.002)=False
are_numbers_equal_diff_0_00001(number1=0.00001, number2=0.00002)=True
are_numbers_equal_diff_0_00001(number1=0.00001, number2=0.0002)=False
are_numbers_equal_diff_0_000001(number1=0.000001, number2=0.000002)=True
are_numbers_equal_diff_0_000001(number1=0.000001, number2=0.00002)=False
are_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.0000002)=True
are_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.000002)=False
are_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.00000002)=True
are_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.0000002)=False
are_numbers_equal_diff_10(number1=10, number2=11)=True
are_numbers_equal_diff_10(number1=10, number2=20)=False
are_numbers_equal_diff_100(number1=100, number2=110)=True
are_numbers_equal_diff_100(number1=100, number2=200)=False
are_numbers_equal_diff_1000(number1=1000, number2=1100)=True
are_numbers_equal_diff_1000(number1=1000, number2=2000)=False
are_numbers_equal_diff_10000(number1=10000, number2=11000)=True
are_numbers_equal_diff_10000(number1=10000, number2=20000)=False
are_numbers_equal_diff_100000(number1=100000, number2=110000)=True
are_numbers_equal_diff_100000(number1=100000, number2=200000)=False
are_numbers_equal_diff_1000000(number1=1000000, number2=1100000)=True
are_numbers_equal_diff_1000000(number1=1000000, number2=2000000)=False
are_numbers_equal_diff_10000000(number1=10000000, number2=11000000)=True
are_numbers_equal_diff_10000000(number1=10000000, number2=20000000)=False
are_numbers_equal_diff_100000000(number1=100000000, number2=110000000)=True
are_numbers_equal_diff_100000000(number1=100000000, number2=200000000)=False



```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/numbers_almost_equal",
    "name": "numbers-almost-equal",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "numbers,equal",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/0a/ae/574ee823077f7d01d06b6b73d726bef2a36d6c0fd03a87c56e94e7faf389/numbers_almost_equal-0.11.tar.gz",
    "platform": null,
    "description": "\n# Checks if 2 numbers (int) are almost equal\n\n```python\n\nfrom numbers_almost_equal import (\nare_numbers_equal,\nare_numbers_equal_diff_0_00000001,\nare_numbers_equal_diff_0_0000001,\nare_numbers_equal_diff_0_000001,\nare_numbers_equal_diff_0_00001,\nare_numbers_equal_diff_0_0001,\nare_numbers_equal_diff_0_001,\nare_numbers_equal_diff_0_01,\nare_numbers_equal_diff_0_1,\nare_numbers_equal_diff_10,\nare_numbers_equal_diff_100,\nare_numbers_equal_diff_1000,\nare_numbers_equal_diff_10000,\nare_numbers_equal_diff_100000,\nare_numbers_equal_diff_1000000,\nare_numbers_equal_diff_10000000,\nare_numbers_equal_diff_100000000,)\n\nare_numbers_equal_diff_0_1(number1=0.1, number2=0.2)=True\nare_numbers_equal_diff_0_1(number1=0.1, number2=2)=False\nare_numbers_equal_diff_0_01(number1=0.01, number2=0.02)=True\nare_numbers_equal_diff_0_01(number1=0.01, number2=0.2)=False\nare_numbers_equal_diff_0_001(number1=0.001, number2=0.002)=True\nare_numbers_equal_diff_0_001(number1=0.001, number2=0.02)=False\nare_numbers_equal_diff_0_0001(number1=0.0001, number2=0.0002)=True\nare_numbers_equal_diff_0_0001(number1=0.0001, number2=0.002)=False\nare_numbers_equal_diff_0_00001(number1=0.00001, number2=0.00002)=True\nare_numbers_equal_diff_0_00001(number1=0.00001, number2=0.0002)=False\nare_numbers_equal_diff_0_000001(number1=0.000001, number2=0.000002)=True\nare_numbers_equal_diff_0_000001(number1=0.000001, number2=0.00002)=False\nare_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.0000002)=True\nare_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.000002)=False\nare_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.00000002)=True\nare_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.0000002)=False\nare_numbers_equal_diff_10(number1=10, number2=11)=True\nare_numbers_equal_diff_10(number1=10, number2=20)=False\nare_numbers_equal_diff_100(number1=100, number2=110)=True\nare_numbers_equal_diff_100(number1=100, number2=200)=False\nare_numbers_equal_diff_1000(number1=1000, number2=1100)=True\nare_numbers_equal_diff_1000(number1=1000, number2=2000)=False\nare_numbers_equal_diff_10000(number1=10000, number2=11000)=True\nare_numbers_equal_diff_10000(number1=10000, number2=20000)=False\nare_numbers_equal_diff_100000(number1=100000, number2=110000)=True\nare_numbers_equal_diff_100000(number1=100000, number2=200000)=False\nare_numbers_equal_diff_1000000(number1=1000000, number2=1100000)=True\nare_numbers_equal_diff_1000000(number1=1000000, number2=2000000)=False\nare_numbers_equal_diff_10000000(number1=10000000, number2=11000000)=True\nare_numbers_equal_diff_10000000(number1=10000000, number2=20000000)=False\nare_numbers_equal_diff_100000000(number1=100000000, number2=110000000)=True\nare_numbers_equal_diff_100000000(number1=100000000, number2=200000000)=False\n\n\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Checks if 2 numbers are almost equal",
    "version": "0.11",
    "split_keywords": [
        "numbers",
        "equal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f22993e46bd0fc302f772c86019872c73b29adac60d685ef9e818639a4be6731",
                "md5": "c3c3b5b270a366792566da2efdc08a40",
                "sha256": "55b1e6204bc59fbc6108af7e71dbc1d4ae3118f340db2d3d7c06a2e12fc7adfb"
            },
            "downloads": -1,
            "filename": "numbers_almost_equal-0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c3c3b5b270a366792566da2efdc08a40",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4729,
            "upload_time": "2023-01-05T03:56:48",
            "upload_time_iso_8601": "2023-01-05T03:56:48.653001Z",
            "url": "https://files.pythonhosted.org/packages/f2/29/93e46bd0fc302f772c86019872c73b29adac60d685ef9e818639a4be6731/numbers_almost_equal-0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0aae574ee823077f7d01d06b6b73d726bef2a36d6c0fd03a87c56e94e7faf389",
                "md5": "0ba15de5f7b3c6ce6ef8a68758330d59",
                "sha256": "b64f841d3014ae8d0fcd493854ed4daf6b1ba8211e74bb40ca1e670bc1582f1a"
            },
            "downloads": -1,
            "filename": "numbers_almost_equal-0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "0ba15de5f7b3c6ce6ef8a68758330d59",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3496,
            "upload_time": "2023-01-05T03:56:49",
            "upload_time_iso_8601": "2023-01-05T03:56:49.972059Z",
            "url": "https://files.pythonhosted.org/packages/0a/ae/574ee823077f7d01d06b6b73d726bef2a36d6c0fd03a87c56e94e7faf389/numbers_almost_equal-0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-05 03:56:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "numbers_almost_equal",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "numbers-almost-equal"
}
        
Elapsed time: 0.08314s