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.20
TRX 0.20
JST 0.034
BTC 90437.72
ETH 3138.83
USDT 1.00
SBD 2.95