{
"subject": "Re: BUG Report: Rounding glitch",
"content": {
"format": "html",
"body": "<div class=\"post\">It must be a rounding error when getinfo converts to floating point to return the JSON-RPC result. The only place where it uses floating point to represent money is returning a value in JSON-RPC.<br/><br/>1.139999999999 is longer than bitcoin can internally represent.<br/><br/>internally, it could only be:<br/>1.13999999 or<br/>1.14000000<br/><br/>1.139999999999 is much much closer to 1.14000000 than 1.13999999, so it must be 1.14000000.<br/><br/>The code is this:<br/>(double)GetBalance() / (double)COIN.<br/><br/>(I can't think of an easy way to fix it at the moment)</div>"
},
"source": {
"name": "Bitcoin Forum",
"url": "https://bitcointalk.org/index.php?topic=432.msg3769#msg3769"
},
"date": "2010-07-17T16:06:12Z"
}