MCPcopy Index your code
hub / github.com/RustPython/RustPython / _normalize_float_str

Function _normalize_float_str

Lib/test/test_tomllib/burntsushi.py:113–120  ·  view source on GitHub ↗
(float_str: str)

Source from the content-addressed store, hash-verified

111
112
113def _normalize_float_str(float_str: str) -> str:
114 as_float = float(float_str)
115
116 # Normalize "-0.0" and "+0.0"
117 if as_float == 0:
118 return "0"
119
120 return str(as_float)

Callers 2

convertFunction · 0.85
normalizeFunction · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected