found a funny UI bug in rentals

avatar



"Suggested Price: 0.5950000000000001 DEC"

This is actually a pretty common error in certain programming, derived from some type of precision/rounding problems or bit-wise nonsense, and I've seen it before it many different places, but I think it's especially funny when framed as a suggestion, lol

In-case it helps someone, an easy solution is to multiply the number by 1000, then round it, then divide by 1000. If that doesn't work you table-flip and convert it into a string and do some parsing I guess.



0
0
0.000
1 comments
avatar

Congratulations @megalithic! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You received more than 100 upvotes.
Your next target is to reach 200 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0
0
0.000