(value: bigint, scale: number)
| 145 | * @internal |
| 146 | */ |
| 147 | export const makeNormalizedUnsafe = (value: bigint, scale: number): BigDecimal => { |
| 148 | if (value !== bigint0 && value % bigint10 === bigint0) { |
| 149 | throw new RangeError("Value must be normalized") |
| 150 | } |
| 151 | |
| 152 | const o = make(value, scale) |
| 153 | o.normalized = o |
| 154 | return o |
| 155 | } |
| 156 | |
| 157 | const bigint0 = BigInt(0) |
| 158 | const bigint1 = BigInt(1) |
no test coverage detected