(n: number)
| 37 | // ---- format helpers ---- |
| 38 | |
| 39 | function formatNumber4(n: number): string { |
| 40 | if (n < 10) return n.toFixed(2); |
| 41 | if (n < 100) return n.toFixed(1); |
| 42 | return Math.floor(n).toString().padStart(4); |
| 43 | } |
| 44 | |
| 45 | function fmtMem(bytes: number): string { |
| 46 | if (bytes == null) return ""; |