On Steem Blockchain, the reputation can be formatted in a logarithmetic (base 10) scale. Given recently, my PR to fix the reputation formatter in SteemJS is merged, I also translate this to PHP which I need.
1 | function formatReputation($rep) { |
Some Example usages:
1 | echo formatReputation(95832978796820) . "\n"; |
The above PHP code should output the following values (you can use them to unit test the function):
69.834 61.002 65.422 -16.194 74.719 25
Every little helps! I hope this helps!
Steem On!~
Reposted to Blog
If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE
Alternatively, you could proxy to me if you are too lazy to vote!
Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy
Visit me at: https://steemyy.com
This page is synchronized from the post: ‘Steem Reputation Format Function in PHP’