Talk:Proper Money Handling (JSON-RPC): Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Gavinandresen (talk | contribs)
No edit summary
Gavinandresen (talk | contribs)
No edit summary
Line 1: Line 1:
luke-jr: what is your python code supposed to do????  Multiplying all ints by 10e8 is a bad idea.
RE: best practices in ECMAScript:
Just converting to base units doesn't magically fix the issues; if I have 1.0BTC == 100000000.0 base units and I need to divide that value into three equal pieces, I'm going to run into issues whether the result is 0.3333333.... or 3333333.33333...

Revision as of 02:29, 4 March 2011

RE: best practices in ECMAScript: Just converting to base units doesn't magically fix the issues; if I have 1.0BTC == 100000000.0 base units and I need to divide that value into three equal pieces, I'm going to run into issues whether the result is 0.3333333.... or 3333333.33333...