def compute_precision(true_positives, false_positives):
    """Compute precision

    >>> compute_precision(0, 10)
    0.0
    >>> compute_precision(446579, 13932)
    0.969747
    """
    return true_positives / (true_positives + false_positives)