(index: number)
| 736 | // Groups outside 0-9999 have no four-digit text, and reading past the ones |
| 737 | // the value carries is how the fractional part is padded out. |
| 738 | const digitAt = (index: number): number => { |
| 739 | if (index < 0 || index >= count) return 0 |
| 740 | const digit = readInt16(bytes, digits + index * 2) |
| 741 | return digit >= 0 && digit <= 9999 ? digit : fail(`Invalid numeric digit: ${digit}`) |
| 742 | } |
| 743 | |
| 744 | let result = sign === NUMERIC_NEG ? "-" : "" |
| 745 | if (weight < 0) { |
no test coverage detected