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

Method minIntegerValue

libsolidity/ast/Types.cpp:835–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835bigint FixedPointType::minIntegerValue() const
836{
837 if (isSigned())
838 {
839 bigint minValue = -(bigint(1) << (m_totalBits - (isSigned() ? 1 : 0)));
840 return minValue / boost::multiprecision::pow(bigint(10), m_fractionalDigits);
841 }
842 else
843 return bigint(0);
844}
845
846TypeResult FixedPointType::binaryOperatorResult(Token _operator, Type const* _other) const
847{

Callers 2

minValueFunction · 0.80

Calls 1

isSignedFunction · 0.85

Tested by

no test coverage detected