//Subtracts the absolute values of two InfInt's private InfInt SubtractPositives(InfInt addValue) { InfInt temp = new InfInt(); InfInt tempThis = new InfInt(); tempThis.EqualTo(this); //iterate the infint for (int i = DIGITS - 1; i >= 0; i--) { int j = i; //Borrow if (tempThis.Integer[i] < addValue.Integer[i]) { j--; while (tempThis.Integer[j] == 0) { tempThis.Integer[j] -= 1; j--; } tempThis.Integer[j] -= 1; j++; while (j <= i) { tempThis.Integer[j] += 10; j++; } } temp.Integer[i] = tempThis.Integer[i] - addValue.Integer[i]; } return(temp); }