MCPcopy Create free account
hub / github.com/astercloud/aster / formatPercent

Function formatPercent

studio/src/lib/utils.ts:48–50  ·  view source on GitHub ↗
(value: number, decimals: number = 1)

Source from the content-addressed store, hash-verified

46
47// Format percentage
48export function formatPercent(value: number, decimals: number = 1): string {
49 return `${(value * 100).toFixed(decimals)}%`;
50}
51
52// Format date
53export function formatDate(dateStr: string): string {

Callers 2

OverviewFunction · 0.90
StatCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected