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

Function maybe_remove_trailing_redundant_chars

crates/literal/src/float.rs:100–108  ·  view source on GitHub ↗

If s represents a floating point value, trailing zeros and a possibly trailing decimal point will be removed. This function does NOT work with decimal commas.

(s: String, alternate_form: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

format_generalFunction · 0.85

Calls 3

remove_trailing_zerosFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected