@classmethod
def from_fraction(cls, fraction, precision):
    """ A short way of constructing Intervals from a fraction. """
    return cls((fraction.numerator * 10 ** precision - 1) // fraction.
        denominator, (fraction.numerator * 10 ** precision + 1) // fraction
        .denominator, precision)
