Method
_create
(
mantissa: bigint,
exponent: number,
special: SpecialValue,
negativeZero: boolean
)
Source from the content-addressed store, hash-verified
| 208 | |
| 209 | // Private constructor for internal use |
| 210 | private static _create( |
| 211 | mantissa: bigint, |
| 212 | exponent: number, |
| 213 | special: SpecialValue, |
| 214 | negativeZero: boolean |
| 215 | ): BigDecimal { |
| 216 | const bd = Object.create(BigDecimal.prototype) as BigDecimal |
| 217 | ;(bd as any)._mantissa = mantissa |
| 218 | ;(bd as any)._exponent = exponent |
| 219 | ;(bd as any)._special = special |
| 220 | ;(bd as any)._negativeZero = negativeZero |
| 221 | return bd |
| 222 | } |
| 223 | |
| 224 | // Auto-coerce to BigDecimal for decimal.js compat |
| 225 | private static _coerce(v: BigDecimal | number | string | bigint): BigDecimal { |
Tested by
no test coverage detected