{ "info": { "author": "Michael Amrhein", "author_email": "michael@adrhinum.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "The module _decimalfp_ provides a _Decimal_ number type which can represent\ndecimal numbers of arbitrary magnitude and arbitrary precision, i.e. any\nnumber of fractional digits.\n\n### Usage\n\n_decimalfp.Decimal_ instances are created by giving a _value_ (default: 0) and\na _precision_ (i.e the number of fractional digits, default: None).\n\nIf _precision_ is given, it must be of type _int_ and >= 0.\n\nIf _value_ is given, it must either be a string, an instance of _number.Integral_, _number.Rational_ (for example _fractions.Fraction_), _decimal.Decimal_ or _float_ or be convertable to a _float_ or an _int_.\n\nIf a string is given as value, it must be a string in one of two formats:\n\n [+|-][.][[+|-]] or\n [+|-].[[+|-]].\n\nThe value is always adjusted to the given precision or the precision is\ncalculated from the given value, if no precision is given.\n\nWhen the given _precision_ is lower than the precision of the given _value_,\nthe result is rounded, according to the rounding mode of the current context\nheld by the standard module _decimal_ (which defaults to ROUND_HALF_EVEN).\n\nWhen no _precision_ is given and the given _value_ is a _float_ or a\n_numbers.Rational_ (but no _Decimal_), the _Decimal_ constructor tries to\nconvert _value_ exactly. But, for performance reasons, this is done only up a\nfixed limit of fractional digits. This limit defaults to 32 and is accessible\nas _decimalfp.LIMIT_PREC_. If _value_ can not be represented as a _Decimal_\nwithin this limit, an exception is raised.\n\n_Decimal_ does not deal with infinity, division by 0 always raises a\n_ZeroDivisionError_. Likewise, infinite instances of type _float_ or\n_decimal.Decimal_ can not be converted to _Decimal_ instances. The same is\ntrue for the 'not a number' instances of these types.\n\n### Computations\n\nWhen importing _decimalfp_, its _Decimal_ type is registered in Pythons\nnumerical stack as _number.Rational_. It supports all operations defined for\nthat base class and its instances can be mixed in computations with instances\nof all numeric types mentioned above.\n\nAll numerical operations give an exact result, i.e. they are not automatically\nconstraint to the precision of the operands or to a number of significant\ndigits (like the floating-point _Decimal_ type from the standard module\n_decimal_). When the result can not exactly be represented by a _Decimal_\ninstance within the limit given by _decimalfp.LIMIT_PREC_, an instance of\n_fractions.Fraction_ is returned.\n\n_Decimal_ supports rounding via the built-in function _round_ using the same\nrounding mode as the _float_ type by default (ROUND_HALF_EVEN in Python 3). In addition, via the method _adjusted_ a _Decimal_ with a different precision can be derived, supporting all rounding modes defined by the standard library module _decimal_.\n\nFor more details see the documentation provided with the source distribution\nor [here](https://decimalfp.readthedocs.io/en/latest).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mamrhein/decimalfp", "keywords": "fixed-point decimal number datatype", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "decimalfp", "package_url": "https://pypi.org/project/decimalfp/", "platform": "all", "project_url": "https://pypi.org/project/decimalfp/", "project_urls": { "Homepage": "https://github.com/mamrhein/decimalfp" }, "release_url": "https://pypi.org/project/decimalfp/0.10.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Decimal fixed-point arithmetic", "version": "0.10.0" }, "last_serial": 5041023, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "7324e351f7b4dcda25ca941a7457adcd", "sha256": "9cbbaf187954f3b1d03b8c58a1d4ad7f14654ec9b47a9613dada2c5332fb1703" }, "downloads": -1, "filename": "decimalfp-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7324e351f7b4dcda25ca941a7457adcd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 407199, "upload_time": "2019-04-01T20:57:36", "url": "https://files.pythonhosted.org/packages/71/53/4175add46994bf9fcc37db81a331bf06b0733d9010eb4af2e77863921408/decimalfp-0.10.0.tar.gz" } ], "0.9.10": [], "0.9.10.1": [ { "comment_text": "", "digests": { "md5": "6f13a1fac39e3af2983d82c8f59cb9c8", "sha256": "bb11b421b6501c5fb7bbdd664dcab7ab601ba169af63d3245d572525c58bc91e" }, "downloads": -1, "filename": "decimalfp-0.9.10.1.tar.gz", "has_sig": false, "md5_digest": "6f13a1fac39e3af2983d82c8f59cb9c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 465219, "upload_time": "2015-03-15T17:34:07", "url": "https://files.pythonhosted.org/packages/38/19/819f013ddf6444d7e76d011e576202a3b26e36f90138f553f38648f7e21f/decimalfp-0.9.10.1.tar.gz" } ], "0.9.11": [ { "comment_text": "", "digests": { "md5": "4307e61156dbc3f1dd6cec67be09d0b2", "sha256": "810852cfe710b13b1b6c85131e71d2f9dd290911407dbb4069fca1a19297255b" }, "downloads": -1, "filename": "decimalfp-0.9.11.tar.gz", "has_sig": false, "md5_digest": "4307e61156dbc3f1dd6cec67be09d0b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 465315, "upload_time": "2015-03-27T12:21:22", "url": "https://files.pythonhosted.org/packages/78/5f/7dccd93cfe3921c851ff67afc0fa95d8c1afe63d041c11fc5b25db399de1/decimalfp-0.9.11.tar.gz" } ], "0.9.12": [ { "comment_text": "", "digests": { "md5": "82db614d598526fc0e50e2ad28c24530", "sha256": "ac894be2e499a4ced2c217ccbaf83c58fb180454c96d00257180d3b5c1251340" }, "downloads": -1, "filename": "decimalfp-0.9.12.tar.gz", "has_sig": false, "md5_digest": "82db614d598526fc0e50e2ad28c24530", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 561265, "upload_time": "2015-11-20T16:33:52", "url": "https://files.pythonhosted.org/packages/48/39/b1973532754edd18a1a6138987401d2ffe2fadb81aa591ebb6cf583f67d0/decimalfp-0.9.12.tar.gz" } ], "0.9.13": [ { "comment_text": "", "digests": { "md5": "2ea6f71f83d9c4a3a16f9cb3ebec1b70", "sha256": "290b1029d3f01ca015a7499f4d3ccd51cd30a382db022d14e983cbc935340580" }, "downloads": -1, "filename": "decimalfp-0.9.13.tar.gz", "has_sig": false, "md5_digest": "2ea6f71f83d9c4a3a16f9cb3ebec1b70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 400526, "upload_time": "2018-12-03T16:36:03", "url": "https://files.pythonhosted.org/packages/dd/af/2e81c113ee2b943e88ffca3ba1c05817872490d9247696750673ba108c9e/decimalfp-0.9.13.tar.gz" } ], "0.9.13.1": [ { "comment_text": "", "digests": { "md5": "9a043787f9f4e58b51ea1c02817b91e5", "sha256": "68bd64cb2226bb8c7988f3ae267dac56a23bcc21fbffc910b4ea6908eab00cfa" }, "downloads": -1, "filename": "decimalfp-0.9.13.1.tar.gz", "has_sig": false, "md5_digest": "9a043787f9f4e58b51ea1c02817b91e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 211951, "upload_time": "2018-12-03T21:29:21", "url": "https://files.pythonhosted.org/packages/d6/e6/ab41e6e3bfa124200531ea57e90f5823b1feb6331a69cd3bac8d8feb4025/decimalfp-0.9.13.1.tar.gz" } ], "0.9.14": [ { "comment_text": "", "digests": { "md5": "81e7624377dd404608b383441a7f6bbd", "sha256": "46532bde96154f62479f86340b7a081196c9bff605a65a8408900f09bbc49b55" }, "downloads": -1, "filename": "decimalfp-0.9.14.tar.gz", "has_sig": false, "md5_digest": "81e7624377dd404608b383441a7f6bbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 221178, "upload_time": "2018-12-19T08:17:28", "url": "https://files.pythonhosted.org/packages/2d/88/30842556296062deb5f07c5d505d295de42e1802a41a4dbc4c30c56ee5c2/decimalfp-0.9.14.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "5ad8129789b3078931853c12a5ec173c", "sha256": "bcfa3aae14d0a7ca96477c19923883dcb5a4a4e6b793cc07be4bd84be6fc910d" }, "downloads": -1, "filename": "decimalfp-0.9.5.tar.gz", "has_sig": false, "md5_digest": "5ad8129789b3078931853c12a5ec173c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 460916, "upload_time": "2014-11-25T21:57:51", "url": "https://files.pythonhosted.org/packages/1a/2b/ac0945e5c1adcd74b9f2ae9fbfee5d8aca0718eadfa17450f9e3d8b918e8/decimalfp-0.9.5.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "db356311ce83289447498b69fa0d6017", "sha256": "3d2781de72e429cf74114ec8e4ce1b4d28b43cfbc55a4d9a50ab3af9ef08db0e" }, "downloads": -1, "filename": "decimalfp-0.9.6.tar.gz", "has_sig": false, "md5_digest": "db356311ce83289447498b69fa0d6017", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 461555, "upload_time": "2014-12-05T16:46:39", "url": "https://files.pythonhosted.org/packages/79/21/e23287baf64ad013296c17c42535d2dd448ce13f2f3f4b6dc54f0fe39ce9/decimalfp-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "bf3eb7bfdbf5c5be8aec631f55d48486", "sha256": "ccc446b954eb87c7bd3fcd4df6c7d8c4923146917970eec5ab8f1c0c4b4d8a13" }, "downloads": -1, "filename": "decimalfp-0.9.7.tar.gz", "has_sig": false, "md5_digest": "bf3eb7bfdbf5c5be8aec631f55d48486", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 461398, "upload_time": "2015-01-04T16:13:14", "url": "https://files.pythonhosted.org/packages/84/15/2e67d748a36134391c1e9f0b37571c02b633f9c9ffe5d0995d6951115aad/decimalfp-0.9.7.tar.gz" } ], "0.9.8": [ { "comment_text": "", "digests": { "md5": "9f5fae6b2c492ffa7691e062d76ec9d2", "sha256": "900329c268814ab509c932fff2aaea19e983b9e10f9cb08c9896ea08cb5b4431" }, "downloads": -1, "filename": "decimalfp-0.9.8.tar.gz", "has_sig": false, "md5_digest": "9f5fae6b2c492ffa7691e062d76ec9d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 461484, "upload_time": "2015-01-10T16:54:00", "url": "https://files.pythonhosted.org/packages/92/46/71938adeeff96134323aa4dcb54de447b1b0010006266ed960a094242d9e/decimalfp-0.9.8.tar.gz" } ], "0.9.9": [ { "comment_text": "", "digests": { "md5": "5659b37306d647fa2b3ae65c61f5c9ef", "sha256": "65c1fed9654e57132080244f6c9726e49d3b407083ba7c0147f81353b85fcba8" }, "downloads": -1, "filename": "decimalfp-0.9.9.tar.gz", "has_sig": false, "md5_digest": "5659b37306d647fa2b3ae65c61f5c9ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 461889, "upload_time": "2015-03-12T15:54:37", "url": "https://files.pythonhosted.org/packages/77/71/63963be298e3efd5e9c5cb3536493dfdae2c165b8bb865c04e3f074d4830/decimalfp-0.9.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7324e351f7b4dcda25ca941a7457adcd", "sha256": "9cbbaf187954f3b1d03b8c58a1d4ad7f14654ec9b47a9613dada2c5332fb1703" }, "downloads": -1, "filename": "decimalfp-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7324e351f7b4dcda25ca941a7457adcd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 407199, "upload_time": "2019-04-01T20:57:36", "url": "https://files.pythonhosted.org/packages/71/53/4175add46994bf9fcc37db81a331bf06b0733d9010eb4af2e77863921408/decimalfp-0.10.0.tar.gz" } ] }