MCPcopy Create free account
hub / github.com/Xilinx/Vitis_Libraries / Format

Function Format

blas/L1/tests/sw/python/check_process.py:27–32  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

25
26
27def Format(x):
28 f_dic = {0: 'th', 1: 'st', 2: 'nd', 3: 'rd'}
29 k = x % 10
30 if k >= 4:
31 k = 0
32 return "%d%s" % (x, f_dic[k])
33
34
35class Jobs:

Callers 1

pollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected