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

Function remove_trailing_zeros

Python/pystrtod.c:481–518  ·  view source on GitHub ↗

Remove trailing zeros after the decimal point from a numeric string; also remove the decimal point if all digits following it are zero. The numeric string must end in '\0', and should not have any leading or trailing whitespace. Assumes that the decimal point is '.'. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ensure_decimal_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected