MCPcopy Create free account
hub / github.com/angular/components / format

Method format

src/dev-app/performance/performance-demo.ts:106–109  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

104 }
105
106 format(num: number): string {
107 const roundedNum = Math.round(num * 100) / 100;
108 return roundedNum >= 10 ? roundedNum.toFixed(2) : '0' + roundedNum.toFixed(2);
109 }
110
111 async runBenchmark(): Promise<void> {
112 this.isRunningBenchmark = true;

Callers 10

getTotalRenderTimeMethod · 0.95
runBenchmarkMethod · 0.95
periodLabelMethod · 0.45
selectDateMethod · 0.45
_createWeekCellsMethod · 0.45
GridCalendarExampleClass · 0.45
_createWeekCellsMethod · 0.45
constructorMethod · 0.45
formatTimeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected