MCPcopy Create free account
hub / github.com/adny-code/fastgrind / _format_value

Function _format_value

tools/fastgrind.py:137–140  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

135
136
137def _format_value(value: float) -> str:
138 if abs(value - round(value)) < 1e-9:
139 return f"{int(round(value)):,}"
140 return f"{value:,.2f}"
141
142
143def _format_percent(value: float) -> str:

Callers 5

_format_stack_summaryFunction · 0.85
generate_snapshot_htmlFunction · 0.85
_render_detail_bundleMethod · 0.85
_render_tick_detailsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected