kastiuz avatar

Getting the reputation value on Steemit

kastiuz

Published: 17 Feb 2018 โ€บ Updated: 17 Feb 2018Getting the reputation value on Steemit

Getting the reputation value on Steemit

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

Leave Getting the reputation value on Steemit to:

Written by

๐Ÿ™‰ Hear no evil ๐Ÿ™ˆ See no evil ๐Ÿ™Š Speak no evil

Read more #steembin posts


Best Posts From kastiuz

We have not curated any of kastiuz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From kastiuz