mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-20 04:48:06 +00:00
fixed a bug in log_approx for bignum
This commit is contained in:
2
util.cpp
2
util.cpp
@@ -765,7 +765,7 @@ struct bignum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ld log_approx() const {
|
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 {
|
ld approx_div(const bignum& b) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user