Precision is defined as the percentage of true positive cases versus all the cases where the prediction is true.
Precision = \(\cfrac{True\,Positives}{All\,Predicted\, Positives}\) x 100%
That is, it takes into account the True Positives and False Positives.
Precision = \(\cfrac{TP}{TP + FP}\) x 100%