

def decodeValue(self, value):
    'Return a number decoded from ``value``.\n\n        If decimals is zero, value will be decoded as an integer;\n        or as a float otherwise.\n\n        Return:\n            Return value is a int (long) or float instance.\n\n        '
    value = value.strip(b' \x00')
    if (b'.' in value):
        return float(self)
    elif value:
        return int(value)
    else:
        return 0

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfNumericFieldDef.decodeValue/VarMisuse@35/131 `value`->`self`