{ "info": { "author": "Ozan Eren Bilgen", "author_email": "oebilgen@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "==========================\nPython Arithmetics Library\n==========================\n\nArithmetics is a Python library that allows adding, subtracting and multiplying **VERY** long numbers.\n\nPython (like many programming languages) is bad at math. It can't represent very large numbers in the memory. It rounds up the decimal precision as if it doesn't matter. For instance, Python calculates ``4376531231238346534654738521343658334865834.8739879827913213`` times ``-123380950827290485196703213.8735298304756982704423`` as ``-5.399805846355196e+68``, which is only a sad approximation. According to Python, ``1 - 0.00000000000000001`` is still equal to ``1.0``, which is obviously wrong and can lead to serious bugs.\n\nArithmetics Library can add, subtract or multiply numbers AT ANY LENGTH with the exact precision. It doesn't suffer from integer overflow or floating point rounding problems because it takes numbers in string format. It can work with positive, negative and decimal numbers. Analytics Library can calculate the above multiplication precisely: ``-539980584635519517644606174820023097370977572779217236866897631496501.40991196066825563084376519821275241099``.\n\nUsage\n=====\n``arithmetics.calculate(...)`` takes in 1 arithmetic operator (``+``, ``-``, or ``*``) and 2 numbers in string format, and returns the result as a string::\n\n from arithmetics import arithmetics\n\n arithmetics.calculate(arithmetics.OPERAND_ADD, '123', '-456.789')\n # returns '-333.789'\n arithmetics.calculate(arithmetics.OPERAND_SUBTRACT, '-1.0000000000000000000000000000000000001', '0.0000000000000000000000000000000000002')\n # returns '-0.9999999999999999999999999999999999999'\n arithmetics.calculate(arithmetics.OPERAND_MULTIPLY, '31352725584.2464', '-4389.999945479936')\n # returns '-137638463605489.0905724488802304'\n\nYou may need this library if...\n===============================\n\n* You do math with very large numbers (e.g. astrophysics)\n* You don't want to lose decimal precision (e.g. financial applications)\n\n\nHappy coding!\n\nOzan Eren Bilgen\n\n* oebilgen@gmail.com\n* http://linkedin.com/in/ozanerenbilgen/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oebilgen/arithmetics", "keywords": "arithmetic math floating point multiplication subtraction addition precision decimal rounding", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Arithmetics", "package_url": "https://pypi.org/project/Arithmetics/", "platform": "", "project_url": "https://pypi.org/project/Arithmetics/", "project_urls": { "Homepage": "https://github.com/oebilgen/arithmetics" }, "release_url": "https://pypi.org/project/Arithmetics/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Python arithmetics for very long numbers.", "version": "0.2.0" }, "last_serial": 4456060, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "13481d54527d1355543adeacb078fac0", "sha256": "f675c7ddd5436a302eb488ffc914a013c4b0709e9c4ca0e70cd368eb086a551e" }, "downloads": -1, "filename": "arithmetics-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "13481d54527d1355543adeacb078fac0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6746, "upload_time": "2018-11-06T06:12:05", "url": "https://files.pythonhosted.org/packages/e6/78/00c6e178b45d5b429994fabfe85b600cb9e93723bb38947c900b7456526e/arithmetics-0.2.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13481d54527d1355543adeacb078fac0", "sha256": "f675c7ddd5436a302eb488ffc914a013c4b0709e9c4ca0e70cd368eb086a551e" }, "downloads": -1, "filename": "arithmetics-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "13481d54527d1355543adeacb078fac0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6746, "upload_time": "2018-11-06T06:12:05", "url": "https://files.pythonhosted.org/packages/e6/78/00c6e178b45d5b429994fabfe85b600cb9e93723bb38947c900b7456526e/arithmetics-0.2.0-py2.py3-none-any.whl" } ] }