MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / fmt

Function fmt

experiments/human_eval/draw_interest_drift_paperflow_style.py:101–104  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

99
100
101def fmt(value: float) -> str:
102 if value >= 10:
103 return f"{value:.2f}"
104 return f"{value:.4f}".rstrip("0").rstrip(".")
105
106
107def draw_legend(draw: ImageDraw.ImageDraw) -> None:

Callers 2

draw_pngFunction · 0.70
write_svgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected