MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _humanize_digits

Function _humanize_digits

core/string/ustring.cpp:4493–4501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4491}
4492
4493static int _humanize_digits(int p_num) {
4494 if (p_num < 100) {
4495 return 2;
4496 } else if (p_num < 1024) {
4497 return 1;
4498 } else {
4499 return 0;
4500 }
4501}
4502
4503String String::humanize_size(uint64_t p_size) {
4504 int magnitude = 0;

Callers 1

humanize_sizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected