consensusRealityIO / RSBP

Real Simple Bitcoin Payments
GNU General Public License v3.0
14 stars 25 forks source link

Prevent Dust. Round last 2 decimal places to 0. #4

Open dykstranet opened 9 years ago

dykstranet commented 9 years ago

It would be better to round the last 2 digits to 0s in order to prevent dust. It's also easier to read.

dykstranet commented 8 years ago

Example 1:

If calculated exchange value is .87654321, returned value would be .87654300.

dykstranet commented 8 years ago

Example 2:

If calculated exchange value is .11111111, returned value would be .11111200

So we are rounding up at the 6th decimal place.

dykstranet commented 7 years ago

Adding this feature will help us to begin thinking in "bits" Bitcoin Units

dykstranet commented 7 years ago

One could think of this enhancement as price rounding to the nearest "bit"