MCPcopy Create free account
hub / github.com/Kitware/ParaView / getNumberOfDigits

Function getNumberOfDigits

Qt/Python/pqPythonLineNumberArea.cxx:20–23  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

18{
19//-----------------------------------------------------------------------------
20inline std::uint32_t getNumberOfDigits(std::uint32_t i)
21{
22 return i > 0 ? static_cast<std::int32_t>(std::log10(static_cast<float>(i)) + 1) : 1;
23}
24}
25
26//-----------------------------------------------------------------------------

Callers 1

sizeHintMethod · 0.85

Calls 1

log10Function · 0.50

Tested by

no test coverage detected