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

Function remove_trailing_decimal_point

crates/literal/src/float.rs:118–124  ·  view source on GitHub ↗
(s: String)

Source from the content-addressed store, hash-verified

116}
117
118fn remove_trailing_decimal_point(s: String) -> String {
119 let mut s = s;
120 if s.ends_with('.') {
121 s.pop();
122 }
123 s
124}
125
126pub fn format_general(
127 precision: usize,

Callers 1

Calls 2

ends_withMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected