summaryrefslogtreecommitdiff
path: root/Python/dtoa.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires ↵Mark Dickinson2010-01-161-5/+6
| | | | an unsigned long and the other a signed long. See also r77421.
* Issue #7632: Fix one more case of incorrect rounding for str -> floatMark Dickinson2010-01-161-27/+52
| | | | conversion (see bug 5 in the issue tracker).
* Issue #7632: Fix a serious wrong output bug for string -> float conversion.Mark Dickinson2010-01-161-15/+41
| | | | | | Also remove some now unused variables, and add comments clarifying the possible outputs of the parsing section of _Py_dg_strtod. Thanks Eric Smith for reviewing.
* Issue 7632: fix incorrect rounding for long input strings with values very ↵Mark Dickinson2010-01-141-0/+24
| | | | close to a power of 2. (See Bug 4 in the tracker discussion.)
* Issue 7632: fix a dtoa.c bug (bug 6) causing incorrect rounding. Tests to ↵Mark Dickinson2010-01-141-9/+6
| | | | follow.
* Fix off-by-one error introduced in r77483. I have a test for this, but it ↵Mark Dickinson2010-01-141-2/+2
| | | | currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed.
* More dtoa.c cleanup; remove the need for bc.dplen, bc.dp0 and bc.dp1.Mark Dickinson2010-01-131-69/+43
|
* Fix buggy comparison: LHS of comparison was being treated as unsigned.Mark Dickinson2010-01-131-1/+1
|
* Simplify and annotate the bigcomp function, removing unused special cases.Mark Dickinson2010-01-131-50/+26
|
* Clarify that sulp expects a nonnegative input, but that +0.0 is fine.Mark Dickinson2010-01-131-5/+7
|
* Add comments explaining the role of the bigcomp function in dtoa.c.Mark Dickinson2010-01-131-1/+60
|
* Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded ↵Mark Dickinson2010-01-121-2/+22
| | | | results.
* Issue #7632: Fix a problem with _Py_dg_strtod that could lead toMark Dickinson2010-01-121-11/+15
| | | | | crashes in debug builds, for certain long numeric strings corresponding to subnormal values.
* Change a variable type to avoid signed overflow; replace repeated '19999' ↵Mark Dickinson2010-01-111-4/+10
| | | | constant by a define.
* Remove unused BCinfo fields and an unused macro.Mark Dickinson2010-01-101-21/+8
|
* Fix typo in comment.Mark Dickinson2010-01-041-1/+1
|
* Remove temporary define from r75653Mark Dickinson2009-10-241-2/+0
|
* Temporary define to avoid build failureMark Dickinson2009-10-241-0/+2
|
* Issue #7117: Prepare for backport of py3k float repr.Mark Dickinson2009-10-241-0/+2609
Add the Python/dtoa.c file containing the main algorithms; add corresponding include file and include in Python.h; include license information for Python/dtoa.c; add dtoa.c and dtoa.h to Makefile.