Precision is defined as the percentage of true positive cases versus all the cases where the prediction is true.
Precision = True Positive / All Predicted Positives * 100%
That is, it takes into account the True Positives and False Positives.
Precision = TP / (TP + FP) * 100%
Study more about Modelling at Modelling Class 10