Commit Graph

64 Commits

Author SHA1 Message Date
JoelKatz
dc8889668a Simplification. 2012-04-11 12:25:09 -07:00
JoelKatz
b771a11836 A 1/3 lsb offset is needed to make the multiplication round down correctly. 2012-04-11 00:27:49 -07:00
JoelKatz
48fe991cdb Rounding fix. 2012-04-10 17:00:40 -07:00
JoelKatz
e61ddb980e Off by one error. 2012-04-10 16:51:00 -07:00
JoelKatz
db2846547f Missed one special cast. 2012-04-10 16:47:17 -07:00
JoelKatz
c1cd616359 Always display these exactly. 2012-04-10 16:46:41 -07:00
JoelKatz
ce30701744 Code to compute how much you need to pay to get a particular output from an offer. 2012-04-10 16:04:28 -07:00
JoelKatz
6bf6d86cd9 Offer logic seems to be working now. 2012-04-10 15:26:44 -07:00
JoelKatz
22d3354ccc Typo. 2012-04-10 14:37:20 -07:00
JoelKatz
7ebd7a1845 Cleanups, add comments, some fixes. 2012-04-10 14:36:53 -07:00
JoelKatz
ad1ae6af23 Fix mishandling of zero values. Must add to unit test! 2012-04-10 13:22:16 -07:00
JoelKatz
b093110890 Fixes. 2012-04-10 13:11:20 -07:00
JoelKatz
005ea61f9b All currency operations except the three weirdest ones for exchanges. 2012-04-09 21:00:27 -07:00
JoelKatz
fcdf42e799 Promote 'amounts' to a new type. Codify storage format, both internal
and serialized. Define operators.
2012-04-09 19:36:51 -07:00