(p)
| 52 | }; |
| 53 | // p-digit BigDecimal in [1,10): leading nonzero digit, dot, p-1 fractional. |
| 54 | const mkP = (p) => new B(`${1 + ((rnd() * 9) | 0)}.${digits(p - 1)}`); |
| 55 | // p-digit BigDecimal in [0,2): safe, representative arg for exp/cos. |
| 56 | const mkSmall = (p) => new B(`${(rnd() * 2).toFixed(0)}.${digits(p - 1)}`); |
| 57 | // p-significant-digit BigInt with a few trailing zeros → exercises the |
no test coverage detected