()
| 632 | } |
| 633 | |
| 634 | toNumber(): number { |
| 635 | if (this._special === SpecialValue.NAN) return NaN |
| 636 | if (this._special === SpecialValue.POSITIVE_INFINITY) return Infinity |
| 637 | if (this._special === SpecialValue.NEGATIVE_INFINITY) return -Infinity |
| 638 | if (this._mantissa === 0n) return this._negativeZero ? -0 : 0 |
| 639 | return Number(this.toString()) |
| 640 | } |
| 641 | |
| 642 | toString(): string { |
| 643 | if (this._special === SpecialValue.NAN) return 'NaN' |
no test coverage detected