MCPcopy Create free account
hub / github.com/numpy/numpy / _float_to_str

Method _float_to_str

numpy/core/getlimits.py:111–119  ·  view source on GitHub ↗

Converts float to str. Parameters ---------- value : float value to be converted.

(self, value)

Source from the content-addressed store, hash-verified

109 return array([value], self.ftype)
110
111 def _float_to_str(self, value):
112 """Converts float to str.
113
114 Parameters
115 ----------
116 value : float
117 value to be converted.
118 """
119 return self.params['fmt'] % array(_fr0(value)[0], self.ftype)
120
121
122_convert_to_float = {

Callers 2

__init__Method · 0.95

Calls 2

arrayFunction · 0.90
_fr0Function · 0.85

Tested by

no test coverage detected