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
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
}