MCPcopy 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
21def format_float(a, b=1):
22 if a > 0 and b > 0:
23 return '{:.2f}'.format(a / b)
24 return 'N/A'
25
26
27def ftp_get(url):

Callers 1

test-my-pr.pyFile · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected