MCPcopy 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
618int 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

vUpdateMethod · 0.45

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected