MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / fmt

Function fmt

benchmarks/big-decimal/run-ops.mjs:92–92  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

90
91// ---- markdown tables ------------------------------------------------------
92const fmt = (v) => (v == null ? '—' : v >= 1000 ? Math.round(v).toLocaleString('en-US') : String(v));
93const PRIMITIVES = ['add', 'sub', 'mul', 'div', 'sqrt', 'round', 'normalize', 'normalize_tz', 'cmp'];
94const COMPOSITES = ['ln', 'exp', 'cos', 'zeta3'];
95const OPLABEL = {

Callers 1

tableFunction · 0.70

Calls 1

roundMethod · 0.45

Tested by

no test coverage detected