MCPcopy Create free account
hub / github.com/doldecomp/mkdd / format_float

Function format_float

tools/changes_fmt.py:28–31  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

26
27
28def format_float(value: float) -> str:
29 if value < 100.0 and value > 99.99:
30 value = 99.99
31 return "%6.2f" % value
32
33
34def get_changes(changes_file: str) -> Tuple[list[Change], list[Change]]:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected