diff Objects/stringobject.c @ 52405:423c9477d6ef 2.6

Merged revisions 70678 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70678 | mark.dickinson | 2009-03-29 15:37:51 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test with fabs(x) >= 1e50, and fix documentation. ........
author Mark Dickinson <dickinsm@gmail.com>
date Sun, 29 Mar 2009 15:06:29 +0000
parents 2e794757bdc8
children 6e591d4dc6c9
line wrap: on
line diff
--- a/Objects/stringobject.c	Sat Mar 28 19:20:52 2009 +0000
+++ b/Objects/stringobject.c	Sun Mar 29 15:06:29 2009 +0000
@@ -4336,7 +4336,7 @@
 	}
 	if (prec < 0)
 		prec = 6;
-	if (type == 'f' && fabs(x)/1e25 >= 1e25)
+	if (type == 'f' && fabs(x) >= 1e50)
 		type = 'g';
 	/* Worst case length calc to ensure no buffer overrun: