Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dblalock/bolt
/ _fmt_float
Function
_fmt_float
tests/test_encoder.py:109–110 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
107
108
109
def
_fmt_float(x):
110
return
'{}.'
.format(int(x))
if
x == int(x)
else
'{:.3f}'
.format(x)
111
112
113
def
_load_digits_X_Q(nqueries):
Callers
nothing calls this directly
Calls
1
format
Method · 0.80
Tested by
no test coverage detected