summaryrefslogtreecommitdiff
path: root/Objects/floatobject.c
AgeCommit message (Expand)AuthorLines
2008-03-14Issue 705836: Fix struct.pack(">f", 1e40) to behave consistentlyMark Dickinson-8/+8
2008-02-17Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith-0/+43
2008-02-04Patch #1953Christian Heimes-7/+23
2008-02-02Simpler solution to handling non-IEEE 754 environments.Raymond Hettinger-13/+3
2008-02-01Add protection from weirdness while scaling the mantissa to an integer.Raymond Hettinger-5/+10
2008-02-01Fix int/long typecase. Add check for non-binary floating point.Raymond Hettinger-2/+9
2008-02-01labs() takes a long for an input.Raymond Hettinger-1/+1
2008-02-01Integer ratio should return ints instead of longs whereever possible.Raymond Hettinger-2/+8
2008-02-01Issue #1996: float.as_integer_ratio() should return fraction in lowest terms.Raymond Hettinger-85/+18
2008-01-30The previous change was causing a segfault after multiple calls to Py_Initial...Christian Heimes-9/+5
2008-01-30Fixed some references leaks in sys.Christian Heimes-1/+0
2008-01-27Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() becauseJeffrey Yasskin-0/+159
2008-01-25Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)Neal Norwitz-0/+5
2008-01-14Now that I've learnt about structseq objects I felt like converting sys.float...Christian Heimes-25/+74
2008-01-05Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin-55/+3
2008-01-03Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin-26/+82
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFC...Christian Heimes-12/+12
2007-12-18Applied patch #1635: Float patch for inf and nan on Windows (and other platfo...Christian Heimes-1/+49
2007-12-11The new float repr causes too much trouble and pain. I'm disabling the featur...Christian Heimes-1/+12
2007-12-10Backport of r59456:59458 from py3k to trunkChristian Heimes-2/+106
2007-12-01Feature #1534Christian Heimes-0/+47
2007-09-17Add a bunch of GIL release/acquire points in tp_print implementations and forBrett Cannon-0/+2
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-14/+13
2007-05-03Remove dead code. This code couldn't be reached because earlier inNeal Norwitz-12/+1
2006-08-23Reverting the patch that tried to fix the issue whereby x**2 raisesAlex Martelli-3/+3
2006-08-23x**2 should about equal x*x (including for a float x such that the result isAlex Martelli-3/+3
2006-05-25Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for thi...Kristján Valur Jónsson-5/+2
2006-04-18C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a...Skip Montanaro-1/+1
2006-04-11More C++-compliance. Note especially listobject.c - to get C++ to accept theAnthony Baxter-5/+5
2006-03-30Remove unnecessary casts in type object initializers.Georg Brandl-12/+12
2006-03-01Use %ld and casts to long for refcount printing, in absense of a universallyThomas Wouters-2/+6
2006-02-27Revert backwards-incompatible const changes.Martin v. Löwis-1/+1
2006-02-15Merge ssize_t branch.Martin v. Löwis-2/+2
2006-01-08Fix icc warnings: remove unused variableNeal Norwitz-2/+1
2005-12-10Add const to several API functions that take char *.Jeremy Hylton-1/+1
2005-12-05Fix bugMichael W. Hudson-5/+13
2005-06-30Apparently some compiler gives a warning onMichael W. Hudson-1/+1
2005-05-27This is my patch:Michael W. Hudson-235/+505
2005-04-26Make subclasses of int, long, complex, float, and unicode perform typeBrett Cannon-1/+4
2004-09-23float_richcompare(): Use the new Py_IS_NAN macro to ensure that, onTim Peters-11/+9
2004-09-23SF bug #513866: Float/long comparison anomaly.Tim Peters-8/+206
2004-07-08Fix a couple of signed/unsigned comparison warningsNeal Norwitz-1/+1
2004-06-08Patch #774665: Make Python LC_NUMERIC agnostic.Martin v. Löwis-3/+5
2004-05-26Remove float_compare as perMichael W. Hudson-9/+1
2004-02-26Oops, didn't mean to commit the removal of float_compare!Michael W. Hudson-1/+1
2004-02-26Pass a variable that actually exists to PyFPE_END_PROTECT inMichael W. Hudson-2/+2
2004-02-19"Fix" (for certain configurations of the planets, includingMichael W. Hudson-1/+35
2004-01-17Remove support for SunOS 4.Skip Montanaro-10/+0
2003-11-20Getting rid of all the code inside #ifdef macintosh too.Jack Jansen-1/+1
2003-06-28SF patch 703666: Several objects don't decref tmp on failure in subtype_newRaymond Hettinger-1/+3