summaryrefslogtreecommitdiff
path: root/src/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes for variable shadowing (3/28)John Wiegley2012-02-171-4/+4
|
* Use GMP_* macros instead of MPFR_*John Wiegley2011-11-051-9/+9
|
* amount_t::in_place_floor should round toward zeroJohn Wiegley2011-10-111-11/+12
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* Removed unused variablesJohn Wiegley2011-08-181-5/+1
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-3/+2
|
* Minor simplifications to valexpr parserJohn Wiegley2010-09-051-2/+4
| | | | | The most significant change is the way CONS sequences are parsed, and that now instead of =/:=, the operators are ==/=.
* Added debug print for commodity.prices.findJohn Wiegley2010-06-201-0/+2
|
* Made amount_t::value a bit saferJohn Wiegley2010-06-191-5/+6
|
* Untabified all source filesJohn Wiegley2010-06-111-190/+190
|
* New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTESJohn Wiegley2010-06-091-2/+2
| | | | | | | | This is used by reports like register and balance so that separated commodities without spaces in them needed be surrounded by quotes. It will still occur in most other places. Fixes #200 / F82CF11F-BFD9-4512-A562-202B04B68051
* A further simplification of -V and -XJohn Wiegley2010-06-071-25/+28
| | | | | | | | With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity.
* Fixed the way prices and costs are print'dJohn Wiegley2010-06-071-2/+2
|
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-1/+1
|
* Allow opt -NDEBUG build to complete without warningsJohn Wiegley2010-06-041-0/+4
|
* Removed a redundant checkJohn Wiegley2010-06-031-2/+1
|
* Short-circuit annotated commodity valuationJohn Wiegley2010-06-031-1/+3
|
* Minor optimization of amount_t::operator*John Wiegley2010-06-031-10/+18
|
* Removed some debug codeJohn Wiegley2010-06-031-4/+0
|
* Correct display of amounts with keep_precisionJohn Wiegley2010-06-021-13/+39
| | | | Fixes #167 / 1D275740-D1A6-42B7-BDE4-F2F85E30CE8E
* Throw an exception if mpfr_asprintf failsJohn Wiegley2010-06-021-1/+4
|
* Changed --european option to --decimal-commaJohn Wiegley2010-06-011-19/+20
| | | | Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
* Optimized amount_t::in_place_truncateJohn Wiegley2010-05-261-0/+38
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-23/+31
|
* Made the amount_t::bigint_t refcount holder 32-bitsJohn Wiegley2009-11-141-6/+2
| | | | It was overflowing on a full register report of just 3M of data.
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-93/+106
|
* Added a few missing explicit instantiationsJohn Wiegley2009-11-101-2/+9
|
* Improved the numerical parser for basic amountsJohn Wiegley2009-11-101-51/+105
| | | | | 1,00,000 now causes an error, for example, whereas before the commas were largely ignored.
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-4/+4
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+13
|
* Made --european more pervasive in its effectJohn Wiegley2009-11-081-4/+8
|
* Added Python interface for commodity_tJohn Wiegley2009-11-021-2/+2
|
* Use is_annotated() method rather than "annotated"John Wiegley2009-11-021-3/+3
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+73
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Renamed bigint_t::refc, for consistency with value_tJohn Wiegley2009-10-291-14/+14
|
* Added some whitespace for clarityJohn Wiegley2009-10-281-0/+2
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-5/+5
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-2/+14
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* More refactoring for --downloadJohn Wiegley2009-06-241-4/+13
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+2
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --unround, added baseline testJohn Wiegley2009-06-211-0/+3
|
* Temporarily stubbed out an inaccurate assertJohn Wiegley2009-06-151-1/+3
|
* Don't increase precision so much when dividingJohn Wiegley2009-06-151-3/+3
| | | | | | | | | Slow the increase in internal precision when dividing amounts. Use "--debug amount.convert" if you wish to see this logic in action, if a case where incorrect rounding is suspected comes up. Fixes B68FFB0D-A9A0-479C-A6C0-68853F229333
* Ignore attempts to annotate the null commodityJohn Wiegley2009-06-151-1/+1
| | | | Fixes 04C5E1CA-1B39-4214-81C7-FD5AA785308F
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+0
|
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-6/+6
|
* Added "fixated commodity pricing"John Wiegley2009-03-021-0/+4
| | | | | | | | | | | | | If you put '=' before an annotated commodity's price, it will cause any future market valuation of that commodity to use that price, and ignore whatever changes may have happened since in the market price. This can be useful if you are tracking gas expenses based on a standard rate which, although it changes over time, should not adjust the historical valuation of how much the gas cost at the time it was purchased: 2009/01/01 Payee Expenses:Gas 100 GAL {=$2} Liabilities:MasterCard $-200
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-14/+21
|