```ruby
module DescriptiveStatistics
  def percentile_rank(p)
    sorted = self.sort
    return sorted.find_index{ |x| x >= p} / sorted.length.to_f
  end
end
```

Change result from [0,1] to
user
```ruby
module DescriptiveStatistics
  def percentile_rank(p)
    sorted = self.sort
    return sorted.find_index{ |x| x >= p} / sorted.length.to_f * 100.0
  end
end
```
assistant