summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 7e40e9386..ccfca78ec 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -610,7 +610,7 @@ class FloatFormat(object):
err = _nc.seterr(invalid='ignore')
try:
if isna(x):
- return str(x).replace('NA', _na_str, 1)
+ return self.special_fmt % (str(x).replace('NA', _na_str, 1),)
elif isnan(x):
if self.sign:
return self.special_fmt % ('+' + _nan_str,)