def _GetPercentile(sortedlist, percent):
 if (not sortedlist):
  return None
 k = (int(math.ceil((len(sortedlist) * percent))) - 1)
 if (k < 0):
  k = 0
 return sortedlist[k]

def _GetPercentile ( sortedlist , percent ) : if ( not sortedlist ) : return None k = ( int ( math . ceil ( ( len ( sortedlist ) * percent ) ) ) - 1 ) if ( k < 0 ) : k = 0 return sortedlist [ k ]
returns a desired percentile value of a sorted list of numbers .