MCPcopy Create free account
hub / github.com/argotorg/solidity / maxIntegerValue

Method maxIntegerValue

libsolidity/ast/Types.cpp:829–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829bigint FixedPointType::maxIntegerValue() const
830{
831 bigint maxValue = (bigint(1) << (m_totalBits - (isSigned() ? 1 : 0))) - 1;
832 return maxValue / boost::multiprecision::pow(bigint(10), m_fractionalDigits);
833}
834
835bigint FixedPointType::minIntegerValue() const
836{

Callers 2

maxValueFunction · 0.80

Calls 1

isSignedFunction · 0.85

Tested by

no test coverage detected