(n: number)
| 143 | } |
| 144 | |
| 145 | function formatNumber(n: number): string { |
| 146 | if (n >= 1000) { |
| 147 | return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_"); |
| 148 | } |
| 149 | return n.toString(); |
| 150 | } |
| 151 | |
| 152 | function formatDecimal(n: number): string { |
| 153 | return Number(n.toFixed(6)).toString(); |
no outgoing calls
no test coverage detected