summaryrefslogtreecommitdiff
path: root/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
* changesJohn Wiegley2008-04-131-17/+0
|
* changesJohn Wiegley2008-04-131-2/+0
|
* Completed commodity math tests.John Wiegley2008-04-131-1/+11
|
* Got most of the commodity tests working, save multiplication and division.John Wiegley2008-04-131-0/+7
|
* Added some missing code.John Wiegley2008-04-131-0/+5
|
* Completed commodity math tests.John Wiegley2008-04-131-22/+53
|
* Got most of the commodity tests working, save multiplication and division.John Wiegley2008-04-131-63/+69
|
* Started adding commodity testsJohn Wiegley2008-04-131-4/+5
|
* Finished uncommoditized amount unit tests.John Wiegley2008-04-131-23/+11
|
* make distcheck now works.John Wiegley2008-04-131-0/+33
|
* Added a reference to gdtoa, for doing expected conversion of double to amount.John Wiegley2008-04-131-0/+49
|
* Miscellaneous changesJohn Wiegley2008-04-131-2/+22
|
* Cleared out all warnings; started work on getting Python up again.John Wiegley2008-04-131-262/+78
|
* Removed all uses of PCH (which was far more trouble than it was worth).John Wiegley2008-04-131-6/+0
|
* Check in all changes made so far toward 3.0.John Wiegley2008-04-131-74/+163
|
* *** empty log message ***John Wiegley2008-04-131-1/+1
|
* Reworked the way date/times are handled.John Wiegley2008-04-131-25/+26
|
* Several fixes to lot price handling.John Wiegley2008-04-131-4/+9
|
* Further refinement of commodity lot information.John Wiegley2008-04-131-7/+71
|
* *** empty log message ***John Wiegley2008-04-131-0/+34
|
* *** empty log message ***John Wiegley2008-04-131-33/+44
|
* Tons of corrections and fixes to value expressions and lot figures.John Wiegley2008-04-131-4/+38
|
* *** empty log message ***John Wiegley2008-04-131-5/+24
|
* *** empty log message ***John Wiegley2008-04-131-0/+23
|
* *** empty log message ***John Wiegley2008-04-131-158/+109
|
* *** empty log message ***John Wiegley2008-04-131-1/+2
|
* Added --ansi and --ansi-invert options.John Wiegley2008-04-131-6/+6
|
* Added much better error location.John Wiegley2008-04-131-19/+30
|
* Added a DATETIME value type.John Wiegley2008-04-131-26/+32
|
* *** empty log message ***John Wiegley2008-04-131-16/+23
|
* *** empty log message ***John Wiegley2008-04-131-2/+6
|
* *** empty log message ***John Wiegley2008-04-131-97/+166
|
* Began support for improved commodity handling.John Wiegley2008-04-131-16/+45
|
* Began support for improved commodity handling.John Wiegley2008-04-131-158/+432
|
* (read_binary_journal): Fixed a tiny memory leak when reading from aJohn Wiegley2008-04-131-0/+177
| | | | binary cache.
* Checked in all major updates.John Wiegley2008-04-131-73/+115
|
* (amount_t::valid): Don't verify the commodity as being non-null, sinceJohn Wiegley2008-04-131-10/+14
| | | | | | NULL is a perfectly valid value for a commodity (it just means null_commodity). Also, never use commodity_->member, but always commodity().member.
* Removed Python integration support.John Wiegley2008-04-131-165/+0
|
* *** empty log message ***John Wiegley2008-04-131-2/+2
|
* Moved the setting of time quantities to the commodity initializationJohn Wiegley2008-04-131-0/+20
| | | | section.
* (amount_t::value): Corrected a problem with commodity rounding afterJohn Wiegley2008-04-131-8/+23
| | | | | | | | market values are determined (was using the wrong commodity's precision value). (commodity_t::value): Fixed the market value calculation algorithm, which was very broken (but only seemed to show up if the price history was very small).
* (find_commodity): Don't copy over the NOMARKET flag from the defaultJohn Wiegley2008-04-131-1/+2
| | | | commodity.
* (parse): Allow "-$100.00" as the equivalent of "$-100.00".John Wiegley2008-04-131-2/+12
|
* (amount_t::parse): Only set the SUFFIXED flag if there is actually aJohn Wiegley2008-04-131-1/+2
| | | | commodity symbol.
* (parse_conversion): When defining a commodity conversion, always markJohn Wiegley2008-04-131-1/+2
| | | | | the larger unit as having no market value (the market price is determined by looking up the base commodity and then multiplying).
* (value): Use `std::map<>::lower_bound' to search for the nearest priceJohn Wiegley2008-04-131-6/+11
| | | | | item in a commodity's history list. This is much more efficient than doing a reverse linear search.
* *** empty log message ***John Wiegley2008-04-131-4/+4
|
* (parse): A fix to the way commodity flags are applied to newly parsedJohn Wiegley2008-04-131-7/+26
| | | | | commodities. This was needing for an edge-case involving commodities that first appears as part of the cost (@ SPEC) of a transaction.
* Changes to support building with gcc 2.95.John Wiegley2008-04-131-0/+11
|
* (AMOUNT_CMP_AMOUNT): Fixed a very serious error in basic amount math,John Wiegley2008-04-131-1/+1
| | | | when lhs is zero.