Getting the reputation value on Steemit

in #steembin7 years ago

View on SteemBin



function getRepValue(rep,intRes=true){

var res = Math.log10(rep);

if (isNaN(res))
    res = 0;

res = Math.max(res - 9,0);

res = (res < 0 ? -1 : 1) * res;

res = (res * 9) + 25;

if (intRes)
  res = parseInt(res);
else
 res = parseFloat((res).toFixed(2));

return res;

}

View on SteemBin

Sort:  

Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase https://
3. Type re
Get Featured Instantly � Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness

Coin Marketplace

STEEM 0.20
TRX 0.19
JST 0.034
BTC 91309.99
ETH 3150.55
USDT 1.00
SBD 2.89