Skip to content

Commit

Permalink
2_div_len.cpp: cal_quotient() -> calc_quotient()
Browse files Browse the repository at this point in the history
  • Loading branch information
1vanK committed Apr 18, 2024
1 parent ec8326b commit 2562059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/2_div_len.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool is_zero(const vector<Digit>& number)
}

// Определяет длину неполного частного
size_t cal_quotient(const vector<Digit>& numerator, const vector<Digit>& denominator)
size_t calc_quotient(const vector<Digit>& numerator, const vector<Digit>& denominator)
{
if (is_zero(denominator))
return 1; // Пусть при делении на 0 результатом будет 0 (длина = 1)
Expand Down Expand Up @@ -135,7 +135,7 @@ size_t cal_quotient(const vector<Digit>& numerator, const vector<Digit>& denomin
// Печатает два длинных числа и длину неполного частного
void show(const vector<Digit>& a, const vector<Digit>& b)
{
cout << to_string(a) << " / " << to_string(b) << " | result length = " << cal_quotient(a, b) << endl;
cout << to_string(a) << " / " << to_string(b) << " | result length = " << calc_quotient(a, b) << endl;
}

int main()
Expand Down

0 comments on commit 2562059

Please sign in to comment.