Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ fmt
Function
fmt
Lib/profiling/sampling/_format_utils.py:4–5 ·
view source on GitHub ↗
(value: int | float, decimals: int = 1)
Source
from the content-addressed store, hash-verified
2
3
4
def
fmt(value: int | float, decimals: int = 1) -> str:
5
return
locale.format_string(f
'%.{decimals}f'
, value, grouping=True)
Callers
8
_generate_index_html
Method · 0.85
_generate_file_html
Method · 0.85
sample
Method · 0.85
_print_realtime_stats
Method · 0.85
_print_unwinder_stats
Method · 0.85
test_range_format_unified
Method · 0.85
test_range_format_context
Method · 0.85
test_format_stack
Method · 0.85
Calls
no outgoing calls
Tested by
3
test_range_format_unified
Method · 0.68
test_range_format_context
Method · 0.68
test_format_stack
Method · 0.68