(self, wantprefixlen=None)
return x + self._printPrefix(wantprefixlen)
Return a string representation in decimal format.

        >>> print IP('127.0.0.1').strDec()
        2130706433
        >>> print IP('2001:0658:022a:cafe:0200::1').strDec()
        42540616829182469433547762482097946625
Return a string representation in decimal format.
Return a string representation in decimal format .
def strDec(self, wantprefixlen=None):
        """Return a string representation in decimal format.

        >>> print IP('127.0.0.1').strDec()
        2130706433
        >>> print IP('2001:0658:022a:cafe:0200::1').strDec()
        42540616829182469433547762482097946625
        """

        if self.WantPrefixLen is None and wantprefixlen is None:
            wantprefixlen = 0

        x = str(self.ip)
        if x[-1] == 'L':
            x = x[:-1]
        return x + self._printPrefix(wantprefixlen)
def strDec ( self , wantprefixlen = None ) : if self . WantPrefixLen is None and wantprefixlen is None : wantprefixlen = 0 x = str ( self . ip ) if x [ - 1 ] == 'L' : x = x [ : - 1 ] return x + self . _printPrefix ( wantprefixlen )