(value: bigint, scale: number)
| 113 | * @internal |
| 114 | */ |
| 115 | export const unsafeMakeNormalized = (value: bigint, scale: number): BigDecimal => { |
| 116 | if (value !== bigint0 && value % bigint10 === bigint0) { |
| 117 | throw new RangeError("Value must be normalized") |
| 118 | } |
| 119 | |
| 120 | const o = make(value, scale) |
| 121 | o.normalized = o |
| 122 | return o |
| 123 | } |
| 124 | |
| 125 | const bigint0 = BigInt(0) |
| 126 | const bigint1 = BigInt(1) |
no test coverage detected