I want to mimic the Excel equivalent PERCENTILE function in C# (or in some pseudo code). How can I do that? The function should take two arguments where the fir
C#
Add the values to a list, sort that list, and take the index value ceil(length of the list * percentile).