218 Commits (580227a8a0d37ebff27815ca2eaadadc592dcb31)

Author SHA1 Message Date
Mark Dickinson 1abe6cd842 Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of dtoa.c functions in float round. 14 years ago
Mark Dickinson 874d59ee91 Issue #11144: Fix corner cases where float-to-int conversion unnecessarily returned a long. 15 years ago
Mark Dickinson ecf8ec67ce Merged revisions 87032 via svnmerge from 15 years ago
Benjamin Peterson df1bc015f2 Merged revisions 82447 via svnmerge from 16 years ago
Benjamin Peterson cf76d1f0c7 add space 16 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Brett Cannon a8ac944924 Add back in a line that was unneeded which advanced a pointer, but commented 16 years ago
Brett Cannon 6f38175cbc Remove an unneeded variable increment. 16 years ago
Ezio Melotti bce3e17bd2 #7482: clarify error message in case of division by zero of float and complex numbers. 16 years ago
Mark Dickinson 99d652ef66 Issue #7534: Fix handling of nans, infinities, and negative zero in ** 16 years ago
Mark Dickinson 31f0cfef0e Include ieeefp.h (when available) in pyport.h instead of individually in 16 years ago
Mark Dickinson bd15a06fd3 Issue #7117, continued: Change round implementation to use the correctly-rounded 16 years ago
Mark Dickinson 8568b19850 Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in 17 years ago
Eric Smith cfaf79c56e Start to remove _PyOS_double_to_string, as mentioned in issue 7117. 17 years ago
Eric Smith 8c3fb39440 Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file. 17 years ago
Eric Smith b327258d4f Removed usage of unsafe PyFloat_AsString. 17 years ago
Benjamin Peterson bf9ec9ba67 add underscores 17 years ago
Mark Dickinson ce05717daa Merged revisions 72564 via svnmerge from 17 years ago
Mark Dickinson b1d45856c2 Issue #5981: Fix some float.fromhex bugs related to inf and nan handling. 17 years ago
Eric Smith a985a3aee4 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 17 years ago
Mark Dickinson 777e4ff503 Eliminate some locale-dependent calls to isspace and tolower. 17 years ago
Mark Dickinson df108ca324 Remove format_float and use _PyOS_double_to_string instead. 17 years ago
Mark Dickinson 6d6b220215 Backport r71967 changes from py3k to trunk. 17 years ago
Eric Smith 068f06568b Issue #5835, deprecate PyOS_ascii_formatd. 17 years ago
Benjamin Peterson c843a4765a Merged revisions 71627 via svnmerge from 17 years ago
Benjamin Peterson 99d36f1563 call __float__ on str subclasses #5759 17 years ago
Benjamin Peterson be2c0a9fe3 Merged revisions 66766-66767,66771-66772,66774,66776,66783-66787,66790,66793,66797 via svnmerge from 18 years ago
Andrew M. Kuchling bd7c4ca569 Use correct capitalization of NaN 18 years ago
Andrew MacIntyre 8c47cabbe9 should use macro'ed symbols not direct 18 years ago
Amaury Forgeot d'Arc d3ffb8974f #3777: long(4.2) returned an int, and broke backward compatibility. 18 years ago
Mark Dickinson 5c2bb1a7d4 issue 3633: Solaris allows fullwidth Unicode digits in isxdigit, so 18 years ago
Mark Dickinson 7103aa42c0 Issue #3008: add instance method float.hex and class method float.fromhex 18 years ago
Gregory P. Smith 2fe77060eb - Issue #2862: Make int and float freelist management consistent with other 18 years ago
Mark Dickinson bf9f4d8015 Issue 3188: accept float('infinity') as well as float('inf'). This 18 years ago
Raymond Hettinger 9c437af4eb Revert 64424, 64438, and 64439. 18 years ago
Hye-Shik Chang 30fa13f3a0 Fix build on FreeBSD gcc. 18 years ago
Raymond Hettinger e0e711446b Issue 3008: hex/oct/bin can show floats exactly. 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Eric Smith dc13b79a38 Refactor and clean up str.format() code (and helpers) in advance of optimizations. 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Mark Dickinson e81c376080 Issue #2801: fix bug in float.is_integer where ValueError 18 years ago
Christian Heimes 6f34109384 I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. 18 years ago
Neal Norwitz 9fdfaaf9af Fix compiler warning about finite() missing on Solaris. 18 years ago
Neal Norwitz c0a56ff908 Pluralss only need one s, not 2 (intss -> ints) 18 years ago
Mark Dickinson c23b8a7af9 Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently 18 years ago
Eric Smith a9f7d62480 Backport of PEP 3101, Advanced String Formatting, from py3k. 18 years ago
Christian Heimes 422051a367 Patch #1953 18 years ago
Raymond Hettinger 2d1aa3350a Simpler solution to handling non-IEEE 754 environments. 18 years ago
Raymond Hettinger f9859037fc Add protection from weirdness while scaling the mantissa to an integer. 18 years ago