XSN icon indicating copy to clipboard operation
XSN copied to clipboard

avoid interger rounding

Open rikublock opened this issue 6 years ago • 3 comments

Two significant digits were lost during percentage based tpos reward calculations due to integer rounding. Should multiply first and then divide.

Problem: A reward value of 1.23456789 encoded as int (CAmount): 123456789 123456789 / 100 becomes 1234567, information about the digits '89' is lost

I also don't see overflow becoming an issue currently.

rikublock avatar Jul 24 '19 06:07 rikublock

@durkmurder overall this looks reasonable, what do you think?

AlexITC avatar Mar 16 '21 22:03 AlexITC

Stakenet io giriş yapamıyorum xsn lerim orda kaldı nasıl cekecez

Fiko1414 avatar May 08 '22 08:05 Fiko1414

Stakenet io giriş yapamıyorum xsn lerim orda kaldı nasıl cekecez Check the discord

Nexlab-One avatar May 12 '22 16:05 Nexlab-One