 handy to order the values in increasing magnitude (just like we did for computing the median). A sample percentile can then be computed by determining the appropriate rank (the place of a value in the ordering) that corresponds to the required percentile:
<span class="math display">\[\text{rank}(\text{percentile}) = \text{ceiling}\left(\frac{\text{percentile}}{100} \times n\right)\]</span>
Here, <span class="math inline">\(\text{percentile}\)</span> is the required percentile (e.g. 25, or 75). The ceiling