MCPcopy Index your code
hub / github.com/formatjs/formatjs / isPositive

Method isPositive

packages/bigdecimal/index.ts:614–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

612 }
613
614 isPositive(): boolean {
615 if (this._special === SpecialValue.NAN) return false
616 if (this._special === SpecialValue.POSITIVE_INFINITY) return true
617 if (this._special === SpecialValue.NEGATIVE_INFINITY) return false
618 if (this._mantissa === 0n) return !this._negativeZero
619 return this._mantissa > 0n
620 }
621
622 isInteger(): boolean {
623 if (this._special !== SpecialValue.NONE) return false

Callers 2

bigdecimal.test.tsFile · 0.80
PartitionNumberPatternFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected