(num: number, b: string)
| 207 | } |
| 208 | |
| 209 | function numberTimesBigInt(num: number, b: string): string { |
| 210 | let product = ''; |
| 211 | let bToThePower = b; |
| 212 | for (; num !== 0; num = num >>> 1) { |
| 213 | if (num & 1) product = addBigInt(product, bToThePower); |
| 214 | bToThePower = addBigInt(bToThePower, bToThePower); |
| 215 | } |
| 216 | return product; |
| 217 | } |
no test coverage detected
searching dependent graphs…