MCPcopy
hub / github.com/formatjs/formatjs / isNegative

Method isNegative

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

Source from the content-addressed store, hash-verified

604 }
605
606 isNegative(): boolean {
607 if (this._special === SpecialValue.NAN) return false
608 if (this._special === SpecialValue.NEGATIVE_INFINITY) return true
609 if (this._special === SpecialValue.POSITIVE_INFINITY) return false
610 if (this._mantissa === 0n) return this._negativeZero
611 return this._mantissa < 0n
612 }
613
614 isPositive(): boolean {
615 if (this._special === SpecialValue.NAN) return false

Callers 5

bigdecimal.test.tsFile · 0.80
FormatNumericToStringFunction · 0.80
ComputeExponentFunction · 0.80
PartitionNumberPatternFunction · 0.80
ToIntegerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected