1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-20 12:58:06 +00:00

fixed a bug in log_approx for bignum

This commit is contained in:
Zeno Rogue
2025-12-05 11:11:58 +01:00
parent 5f0b41463e
commit 45382fc26d

View File

@@ -765,7 +765,7 @@ struct bignum {
}
ld log_approx() const {
return log(leading()) * log(BASE) * (isize(digits) - 1);
return log(leading()) + log(BASE) * (isize(digits) - 1);
}
ld approx_div(const bignum& b) const {