(d: BigDecimal)
| 4 | |
| 5 | // Helper to check internal representation |
| 6 | function rep(d: BigDecimal): { sig: bigint; exp: number } { |
| 7 | return { sig: d.significand, exp: d.exponent }; |
| 8 | } |
| 9 | |
| 10 | // ================================================================ |
| 11 | // Construction from strings |