@classmethod
def set_precision(cls, precision):
    """Set the number of decimal places used to report percentages."""
    assert 0 <= precision < 10
    cls._precision = precision
    cls._near0 = 1.0 / 10 ** precision
    cls._near100 = 100.0 - cls._near0
