(value: number)
| 76 | } |
| 77 | |
| 78 | const formatCount = (value: number): string => { |
| 79 | const rounded = Math.round(value * 100) / 100 |
| 80 | |
| 81 | return Number.isInteger(rounded) |
| 82 | ? rounded.toLocaleString('en-US') |
| 83 | : rounded.toLocaleString('en-US', { |
| 84 | maximumFractionDigits: 2, |
| 85 | minimumFractionDigits: 2, |
| 86 | }) |
| 87 | } |
| 88 | |
| 89 | const getOptionValue = (option: string, args: string[], index: number): [string, number] => { |
| 90 | const inlineSeparator = `${option}=` |