MCPcopy Index your code
hub / github.com/anomalyco/models.dev / formatNumber

Function formatNumber

packages/core/script/generate-digitalocean.ts:309–311  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

307}
308
309function formatNumber(n: number): string {
310 return n >= 1000 ? n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_") : n.toString();
311}
312
313function inferFamily(modelId: string, modelName: string): string | undefined {
314 const kimiFamily = inferKimiFamily(modelId, modelName);

Callers 2

formatTomlFunction · 0.70
formatValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected