MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / formatCoin

Function formatCoin

wxapp/txdt.js:79–82  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

77}
78
79function formatCoin(value) {
80 const num = Number(value || 0);
81 return `${num}(${(num / 100).toFixed(2)})`;
82}
83
84function parseAccount(raw) {
85 const text = String(raw || "").trim();

Callers 2

queryBalanceMethod · 0.85
queryAssetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected