112
113 }
114
115 /**
116 * Signed subtraction built upon unsigned add and subtract.
117 */
118 void signedSubtract(MutableBigInteger addend) {
119 if (sign == 1)
120 sign = sign * subtract(addend);
121 else
122 add(addend);
123 if (intLen == 0)
124 sign = 1;
125 }
126
127 /**
128 * Print out the first intLen ints of this MutableBigInteger's value
129 * array starting at offset.
130 */
131 public String toString() {
132 BigInteger b = new BigInteger(this, sign);
133 return
134 b.toString();
135 }
136
137 }
|
112
113 }
114
115 /**
116 * Signed subtraction built upon unsigned add and subtract.
117 */
118 void signedSubtract(MutableBigInteger addend) {
119 if (sign == 1)
120 sign = sign * subtract(addend);
121 else
122 add(addend);
123 if (intLen == 0)
124 sign = 1;
125 }
126
127 /**
128 * Print out the first intLen ints of this MutableBigInteger's value
129 * array starting at offset.
130 */
131 public String toString() {
132 return this.toBigInteger(sign).toString();
133 }
134
135 }
|