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