This commit is contained in:
Andreas Fabri 2023-03-17 15:08:58 +01:00
parent b66fd6943c
commit 7a3c58c7cc
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ struct real_div {
bf_a.approx(a.BigRatValue(), bf_b.MSB() - bf_b.flrLgErr() + 1, CORE_posInfty);
return bf_a.div(bf_b, r);
} else // both are BigRat
return BigRat(a.BigRatValue(), b.BigRatValue());
return BigRat(a.BigRatValue() / b.BigRatValue());
} else if (a.ID() == REAL_BIGFLOAT || b.ID() == REAL_BIGFLOAT
|| a.ID() == REAL_DOUBLE || b.ID() == REAL_DOUBLE) {
return a.BigFloatValue().div(b.BigFloatValue(), r);