MCPcopy
hub / github.com/formatjs/formatjs / minus

Method minus

packages/bigdecimal/index.ts:307–309  ·  view source on GitHub ↗
(y: BigDecimal | number | string | bigint)

Source from the content-addressed store, hash-verified

305 }
306
307 minus(y: BigDecimal | number | string | bigint): BigDecimal {
308 return this.plus(BigDecimal._coerce(y).negated())
309 }
310
311 mod(y: BigDecimal | number | string | bigint): BigDecimal {
312 const other = BigDecimal._coerce(y)

Callers 5

bigdecimal.test.tsFile · 0.80
ComputeExponentFunction · 0.80
findN1E1R1Function · 0.80
findN2E2R2Function · 0.80

Calls 3

plusMethod · 0.95
negatedMethod · 0.80
_coerceMethod · 0.80

Tested by

no test coverage detected