MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / fmtNum

Function fmtNum

src/components/CardMemoryAnalyticsView.tsx:45–48  ·  view source on GitHub ↗
(n: number, decimals = 1)

Source from the content-addressed store, hash-verified

43import { formatTimeAgo } from '../lib/utils';
44import { getIESetting } from '../lib/settings';
45import { doneBarColor } from '../lib/ui_helpers';
46
47// --- Formatting helpers ---------------------------------------------------
48
49function fmtInt(n: number): string {
50 return Math.round(n).toLocaleString();
51}

Callers 1

BucketRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected