'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'

def strDec(self, wantprefixlen=None):

    if ((self.WantPrefixLen == None) and (wantprefixlen == None)):
        wantprefixlen = 0
    x = ('%d' % self.ip)
    return (x + self._printPrefix(wantprefixlen))
