summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorAnne Archibald <archibald@astron.nl>2015-08-12 17:46:14 +0200
committerAnne Archibald <archibald@astron.nl>2015-08-28 15:52:42 +0200
commit6cbd724f75f25cdaa7cf68fd9743064b77fbf787 (patch)
tree816e86d5806f60c9e2bd618fe3874a6bec373e10 /numpy/core/setup_common.py
parentb478ded953395fee6182439ff5e8eb38fd4271ce (diff)
downloadnumpy-6cbd724f75f25cdaa7cf68fd9743064b77fbf787.tar.gz
BUG: fix #4381: precision loss on string -> longdouble conversion
Avoid going through python floats when converting string to longdouble. This makes it dramatically easier to produce full-precision long double numbers. Fixed are the constructor (np.longdouble("1.01")), np.fromfile, np.fromstring, np.loadtxt, and np.genfromtxt (and functions based on it). Also fixed is precision loss when using np.tofile. This also fixes #1481, poor handling of bad data in fromfile and fromstring. If the function strtod_l is not available, almost none of this will work, and many tests will fail.
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 253dad5b6..68efd1791 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -104,7 +104,7 @@ MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs",
OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh", "atanh",
"rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow",
"copysign", "nextafter", "ftello", "fseeko",
- "strtoll", "strtoull", "cbrt"]
+ "strtoll", "strtoull", "cbrt", "strtold_l",]
OPTIONAL_HEADERS = [