def set_precision(self, width):
        """Set the desired precision for float/exponential formats

        - width must be an integer >= 0

        - default value is set to 3
        """

        if not type(width) is int or width < 0:
            raise ValueError('width must be an integer greater then 0')
        self._precision = width
dataset/ETHPy150Open mesosphere/chronos-utils/lib/texttable/texttable.py/Texttable.set_precision/original