Approximation Error In Steem Power CalculationsteemCreated with Sketch.

in #utopian-io7 years ago (edited)

I have been surfing through the new tool developed by @emrebeyler. That is Steem.rocks, a website that shows the activity feed for a Steem account all in one place. The website shows what ever happens in an account within the Steem Blockchain. It shows both actions by a user and actions received.


Homepage of Steemit.rocks


Since it is an open source project, contributions are accepted. While going through the site, I discovered it had an approximation error. Approximation error is defined as the deviation between the exact value of a data and its approximated value is referred to an approximation error. In this case the approximation error has to deal with the calculation of my Steem Power. My Steem Power was said to be 172 SP on the Steem.rocks website, while in reality it was over 172.5 SP.

For clarification, let's go through what I have just said with images/screenshots.


The image above shows the Steem.rocks website. Here it can be seen that my SP is said to be 172.
But from the calculations shown there: 145.17 + 27.74 - 0.00 = 172.91
172.91 is not equal to 172, nor can it be approximated to 172.



I compared with two other websites Steemd.com and Steemnow.com.
This is the image from Steemd.com. Here it can be seen that my Steem Power is approximated correctly. As seen from the image 145.17 + 27.74 - 0.00 = 172.91, approximately 173 SP. The approximation here is correct.

This is the image from Steemnow.com. Here you can see, the value is not approximated. It gives the complete value, 172.914 SP.

NOTE: Steemdb.com is different from Steemd.com.

CONCLUSION

Thanks @emrebeyler, for working on a great tool. I commend him for looking at the voting power issue I raised earlier today, perhaps the reason I am still contributing now.



SUGGESTION

I do not think this approximation error has anything to do with RPC nodes, since that is what is usually responsible for variations in some values. I am no developer, so I may be wrong but I would suggest you look into this approximation error for accurate Steem Power calculation. You can choose to either approximate the valuse correctly or give the complete figures like Steemnow.com.



Additional information

I used Samsung default browser to access the website on my Samsung Galaxy Phone. All inages/screenshots uploaded were taken with my phone.



Open Source Contribution posted via Utopian.io

Sort:  

I use steemnow.com .good job bro.resteemed

Yeah, Steemnow is also a fine tool to use.

Thank you for the contribution. Can you please edit your post and remove the tag 'airhawk-project' it seems nothing to do with the post, when your done please reply to this comment.
How to edit post?.
edit screen

You can contact us on Discord.
[utopian-moderator]

I have removed the tag.

Hello @jaff8,

Thanks for the bug report. It should be fixed now. Please check your profile on steem.rocks

Related commit: 7a666a21

Thanks for replying, the bug has been fixed. That was a fast one.. wow

Thanks for your sensitive to this little but significant error.

Accepted in Utopian @jaff8.
[utopian-moderator]

Hey @jaff8 I am @utopian-io. I have just super-voted you at 24% Power!

Suggestions https://utopian.io/rules

  • Average amount of information. Good but you can do better!

Achievements

  • I am a bot...I need someone spotting my bugs!
  • Much more informative than others in this category. Good job!
  • Votes on this contribution are going well. Nice!
  • You are having more votes than average for this category. Nice!
  • You have less than 500 followers. Just gave you a gift ;)
  • Seems like you contribute quite often. AMAZING!
  • You have just unlocked 6 achievements. Yeah!
    Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.15
TRX 0.23
JST 0.032
BTC 84177.38
ETH 2215.59
USDT 1.00
SBD 0.64