summaryrefslogtreecommitdiffstats
path: root/Doc/library/decimal.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] GH-105774: Clarify operation of normalize() (GH-106093) (GH-106128)Miss Islington (bot)2023-06-271-6/+37
|
* Removed unnecessary escaping of asterisks (#103714)Richard Hajek2023-04-241-1/+1
| | | | | Removed unnecessary escaping of asterisks, as visible both on GitHub and in https://docs.python.org/3/library/decimal.html#decimal.localcontext Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-101100: Fix Sphinx warnings in `decimal` module (#102125)Hugo van Kemenade2023-02-251-84/+84
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-99087: Add missing newline for prompts in docs (GH-98993)Stanley2022-12-091-0/+1
| | | Add newline for prompts so copying to REPL does not cause errors.
* Docs: Fix backtick errors found by sphinx-lint (#97998)Hugo van Kemenade2022-10-071-4/+4
| | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Serhiy Storchaka2022-09-241-1/+1
|
* Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵Ned Batchelder2022-07-051-5/+5
| | | | | (GH-94551) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
* gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor ↵Alex Waygood2022-05-191-2/+3
| | | | | methods (GH-92421) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-91291: Accept attributes as keyword arguments in decimal.localcontext ↵Sam Ezeh2022-04-221-2/+18
| | | | | (#32242) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-43774: Add more links to configure options (GH-25363)Victor Stinner2021-04-121-2/+2
|
* bpo-43774: Document configure options (GH-25283)Victor Stinner2021-04-081-1/+2
| | | | | | Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build".
* Revert "bpo-26680: Incorporate is_integer in all built-in and standard ↵Raymond Hettinger2020-10-071-14/+0
| | | | | library numeric types (GH-6121)" (GH-22584) This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162.
* bpo-26680: Incorporate is_integer in all built-in and standard library ↵Robert Smallshire2020-10-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | numeric types (GH-6121) * bpo-26680: Adds support for int.is_integer() for compatibility with float.is_integer(). The int.is_integer() method always returns True. * bpo-26680: Adds a test to ensure that False.is_integer() and True.is_integer() are always True. * bpo-26680: Adds Real.is_integer() with a trivial implementation using conversion to int. This default implementation is intended to reduce the workload for subclass implementers. It is not robust in the presence of infinities or NaNs and may have suboptimal performance for other types. * bpo-26680: Adds Rational.is_integer which returns True if the denominator is one. This implementation assumes the Rational is represented in it's lowest form, as required by the class docstring. * bpo-26680: Adds Integral.is_integer which always returns True. * bpo-26680: Adds tests for Fraction.is_integer called as an instance method. The tests for the Rational abstract base class use an unbound method to sidestep the inability to directly instantiate Rational. These tests check that everything works correct as an instance method. * bpo-26680: Updates documentation for Real.is_integer and built-ins int and float. The call x.is_integer() is now listed in the table of operations which apply to all numeric types except complex, with a reference to the full documentation for Real.is_integer(). Mention of is_integer() has been removed from the section 'Additional Methods on Float'. The documentation for Real.is_integer() describes its purpose, and mentions that it should be overridden for performance reasons, or to handle special values like NaN. * bpo-26680: Adds Decimal.is_integer to the Python and C implementations. The C implementation of Decimal already implements and uses mpd_isinteger internally, we just expose the existing function to Python. The Python implementation uses internal conversion to integer using to_integral_value(). In both cases, the corresponding context methods are also implemented. Tests and documentation are included. * bpo-26680: Updates the ACKS file. * bpo-26680: NEWS entries for int, the numeric ABCs and Decimal. Co-authored-by: Robert Smallshire <rob@sixty-north.com>
* bpo-41205: Document Decimal power 0 to the 0 (GH-21386)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2020-07-191-0/+3
| | | Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* Remove reference to 3.7 and 3.8 backports. (GH-20754)Stefan Krah2020-06-091-1/+0
|
* Mention backports (GH-18715)Stefan Krah2020-02-291-1/+1
|
* bpo-39794: Add --without-decimal-contextvar (#18702)Stefan Krah2020-02-291-3/+12
|
* bpo-39576: Clarify the word size for the 32-bit build. (#18616)Stefan Krah2020-02-231-2/+2
|
* bpo-39576: docs: set context for decimal arbitrary precision arithmetic (#18594)Stefan Krah2020-02-211-8/+58
|
* bpo-26256: Document algorithm speed for the Decimal module. (#4808)Cheryl Sabella2019-02-021-0/+20
|
* bpo-30055: add testcleanup to leave a fresh context (#1094)Marco Buttu2017-04-131-0/+5
|
* Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-3/+7
| | | | Thanks to Georg Brandl for the patch.
* mergeRaymond Hettinger2016-08-131-5/+11
|\
| * Issue #27720: Fix error in eng_to_decimal docs and add examples from the ↵Raymond Hettinger2016-08-131-5/+11
| | | | | | | | | | | | specification. (Based on a first draft patch from Evelyn Mitchell.)
* | Issue #26462: Merge code block fixes from 3.5Martin Panter2016-07-291-1/+1
|\ \ | |/
| * Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.Martin Panter2016-07-261-1/+1
| | | | | | | | Patch by Julien Palard.
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+2
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+2
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | merge with 3.5Georg Brandl2016-02-261-3/+0
|\ \ | |/
| * Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-3/+0
| | | | | | | | to SilentGhost for the patch.
* | Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs byStefan Krah2015-12-281-0/+13
|/ | | | Mark Dickinson.
* Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Fix minor docs markup errors.Serhiy Storchaka2015-03-141-1/+1
|\ \ | |/
| * Fix minor docs markup errors.Serhiy Storchaka2015-03-141-1/+1
| |
* | Issue #10650: Remove the non-standard 'watchexp' parameter from theStefan Krah2014-04-301-9/+3
| | | | | | | | | | Decimal.quantize() method in the Python version. It had never been present in the C version.
* | #13437: link to the source code for a few more modulesAndrew Kuchling2014-03-191-1/+2
|/
* Issue #19794: Improved markup for True/False constants.Serhiy Storchaka2013-11-261-13/+13
|
* Issue #15783: Except for the number methods, the C version of decimal nowStefan Krah2012-12-151-41/+54
| | | | | supports all None default values present in decimal.py. These values were largely undocumented.
* Merge typo fix from 3.2.Mark Dickinson2012-11-181-1/+1
|\
| * Typo fix.Mark Dickinson2012-11-181-1/+1
| |
* | Issue #12005: merge doc patch from 3.2Mark Dickinson2012-11-181-0/+23
|\ \ | |/
| * Issue #12005: clarify behaviour of % and // for Decimal objects.Mark Dickinson2012-11-181-0/+23
| |
* | Issue #16348: merge fix from 3.2.Mark Dickinson2012-10-311-6/+15
|\ \ | |/
| * Issue #16348: Fix incorrect documentation for Decimal.remainder_near.Mark Dickinson2012-10-311-6/+15
| |
* | Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().Stefan Krah2012-08-301-0/+5
| |
* | Use the same exception hierarchy as decimal.py. FloatOperation now alsoStefan Krah2012-03-231-1/+1
| | | | | | | | | | inherits from TypeError. Cleanup in module initialization to make repeated import failures robust.
* | Document decimal.MIN_ETINY.Stefan Krah2012-03-211-9/+12
| |
* | Issue #7652: Integrate the decimal floating point libmpdec library to speedStefan Krah2012-03-211-29/+147
|/ | | | | up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application.
* #13730 grammar fixTerry Jan Reedy2012-01-141-1/+1
|