Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppcheck-opensource/cppcheck
/ format_float
Function
format_float
tools/test-my-pr.py:21–24 ·
view source on GitHub ↗
(a, b=1)
Source
from the content-addressed store, hash-verified
19
20
21
def
format_float(a, b=1):
22
if
a > 0 and b > 0:
23
return
'{:.2f}'
.format(a / b)
24
return
'N/A'
25
26
27
def
ftp_get(url):
Callers
1
test-my-pr.py
File · 0.70
Calls
1
format
Method · 0.80
Tested by
no test coverage detected