def percentile_for_in(self, leaderboard_name, member):
if not self.check_member_in(leaderboard_name, member):<EOL><INDENT>return None<EOL><DEDENT>responses = self.redis_connection.pipeline().zcard(<EOL>leaderboard_name).zrevrank(leaderboard_name, member).execute()<EOL>percentile = math.ceil(<EOL>(float(<EOL>(responses[<NUM_LIT:0>] -<EOL>responses[<NUM_LIT:1>] -<EOL><NUM_LIT:1>)) /<EOL>float(<EOL>responses[<NUM_LIT:0>]) *<EOL><NUM_LIT:100>))<EOL>if self.order == self.ASC:<EOL><INDENT>return <NUM_LIT:100> - percentile<EOL><DEDENT>else:<EOL><INDENT>return percentile<EOL><DEDENT>
Retrieve the percentile for a member in the named leaderboard.

@param leaderboard_name [String] Name of the leaderboard.
@param member [String] Member name.
@return the percentile for a member in the named leaderboard.