You are viewing a single comment's thread from:

RE: [steem.cool] Live Reputation (REP) Viewer w/ Estimated UpVote REP Value, REP Needed for Next Level, Level Information

in #steem-cool8 years ago
export const repLog10 = rep2 => {
    if(rep2 == null) return rep2
    let rep = String(rep2)
    const neg = rep.charAt(0) === '-'
    rep = neg ? rep.substring(1) : rep
    rep = rep.length <= 8 ? 1 : rep.length - 8;
    rep = neg ? -1 * rep : rep
    return rep
}

https://github.com/steemit/steemit.com/blob/f3344159d4769a17662bcf2aad945411a5937aa0/app/utils/ParsersAndFormatters.js

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 61986.20
ETH 2421.27
USDT 1.00
SBD 2.63