MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / ensure_decimal_point

Function ensure_decimal_point

Python/pystrtod.c:527–615  ·  view source on GitHub ↗

Ensure that buffer has a decimal point in it. The decimal point will not be in the current locale, it will always be '.'. Don't add a decimal point if an exponent is present. Also, convert to exponential notation where adding a '.0' would produce too many significant digits (see issue 5864). Returns a pointer to the fixed buffer, or NULL on failure. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_PyOS_ascii_formatdFunction · 0.85

Calls 2

PyOS_snprintfFunction · 0.85
remove_trailing_zerosFunction · 0.85

Tested by

no test coverage detected