MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / formatNumber

Function formatNumber

packages/core/src/widgets/debugPanel.ts:102–104  ·  view source on GitHub ↗

* Format a number with fixed decimal places.

(n: number, decimals = 1)

Source from the content-addressed store, hash-verified

100 * Format a number with fixed decimal places.
101 */
102function formatNumber(n: number, decimals = 1): string {
103 return n.toFixed(decimals);
104}
105
106/**
107 * Get color style based on FPS value.

Callers 2

debugPanelFunction · 0.70
fpsCounterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected