Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EasyRPG/Player
/ GetMaxDigits
Method
GetMaxDigits
src/game_variables.cpp:618–621 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
616
}
617
618
int Game_Variables::GetMaxDigits() const {
619
auto val = std::max(std::llabs(_max), std::llabs(_min));
620
return static_cast<int>(std::log10(val) + 1);
621
}
Callers
2
vUpdate
Method · 0.45
CreateNumberInputWindow
Method · 0.45
Calls
1
max
Function · 0.85
Tested by
no test coverage detected