MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _latex_ENG

Function _latex_ENG

SLiCAP/SLiCAPhtml.py:30–43  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

28 return label
29
30def _latex_ENG(num):
31 if ini.scalefactors or ini.eng_notation:
32 num, exp = ENG(num, scaleFactors=ini.scalefactors)
33 num = roundN(num)
34 if exp != None:
35 if ini.scalefactors:
36 num = str(num) + '\\, \\mathrm{' + str(exp) + '}'
37 else:
38 num = str(num) + '\\cdot 10^{' + str(exp) + '}'
39 else:
40 num = sp.latex(num)
41 else:
42 num = sp.latex(roundN(num))
43 return num
44
45def printHTMLinfo():
46 """

Callers 7

_htmlLineMethod · 0.90
_latex_ieeeFunction · 0.90
elementData2htmlFunction · 0.85
params2htmlFunction · 0.85
expr2htmlFunction · 0.85
eqn2htmlFunction · 0.85
pz2htmlFunction · 0.85

Calls 2

ENGFunction · 0.90
roundNFunction · 0.90

Tested by

no test coverage detected