We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766ee27 commit 300096dCopy full SHA for 300096d
numpy/_core/getlimits.py
@@ -146,10 +146,12 @@ def _float_to_str(self, value):
146
title = _title_fmt.format('half'))}
147
148
# Key to identify the floating point type. Key is result of
149
-# ftype('-0.1').newbyteorder('<').tobytes()
150
#
151
-# 20230201 - use (ftype(-1.0) / ftype(10.0)).newbyteorder('<').tobytes()
152
-# instead because stold may have deficiencies on some platforms.
+# ftype = np.longdouble # or float64, float32, etc.
+# v = (ftype(-1.0) / ftype(10.0))
+# v.view(v.dtype.newbyteorder('<')).tobytes()
153
+#
154
+# Uses division to work around deficiencies in strtold on some platforms.
155
# See:
156
# https://perl5.git.perl.org/perl.git/blob/3118d7d684b56cbeb702af874f4326683c45f045:/Configure
157
0 commit comments