@signpostmarv/intermediary-number 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -499,6 +499,12 @@ export class IntermediaryCalculation {
|
|
|
499
499
|
if ('/' === this.operation
|
|
500
500
|
|| left instanceof Fraction
|
|
501
501
|
|| right instanceof Fraction) {
|
|
502
|
+
if (left_operand instanceof IntermediaryNumberInfinity) {
|
|
503
|
+
return left_operand;
|
|
504
|
+
}
|
|
505
|
+
else if (right_operand instanceof IntermediaryNumberInfinity) {
|
|
506
|
+
return right_operand;
|
|
507
|
+
}
|
|
502
508
|
return IntermediaryNumber.create(Fraction_operation_map[this.operation](((left instanceof BigNumber)
|
|
503
509
|
? left_operand.toFraction()
|
|
504
510
|
: left), ((right instanceof BigNumber)
|
package/package.json
CHANGED