MCPcopy
hub / github.com/formatjs/formatjs / _create

Method _create

packages/bigdecimal/index.ts:210–222  ·  view source on GitHub ↗
(
    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 {

Callers 11

timesMethod · 0.80
divMethod · 0.80
plusMethod · 0.80
modMethod · 0.80
absMethod · 0.80
negatedMethod · 0.80
powMethod · 0.80
floorMethod · 0.80
ceilMethod · 0.80
logMethod · 0.80
_specialArithMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected