summaryrefslogtreecommitdiff
path: root/src/amount.h
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-301-0/+7
| | | | Fixes Bug634 by adding roundto(amount, places).
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-0/+9
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-1/+1
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-2/+2
|
* Never price commodities using annotated commoditiesJohn Wiegley2012-03-301-0/+9
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-4/+4
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-3/+5
|
* Added amount_t::commodity_ptr()John Wiegley2012-03-091-0/+1
|
* Made amount_t::price return an optional<amount_t>John Wiegley2012-03-071-1/+1
|
* All tests are working again but oneJohn Wiegley2012-03-051-1/+6
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-2/+2
|
* Minor simplifications to valexpr parserJohn Wiegley2010-09-051-1/+1
| | | | | The most significant change is the way CONS sequences are parsed, and that now instead of =/:=, the operators are ==/=.
* Changes for building with Visual Studio 2008John Wiegley2010-06-151-2/+2
|
* Untabified all source filesJohn Wiegley2010-06-111-12/+12
|
* New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTESJohn Wiegley2010-06-091-0/+1
| | | | | | | | 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-2/+1
| | | | | | | | 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.
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-1/+7
|
* A little bit of code cleanupJohn Wiegley2010-06-041-2/+1
|
* Minor optimization of amount_t::operator*John Wiegley2010-06-031-1/+4
|
* Optimized amount_t::in_place_truncateJohn Wiegley2010-05-261-3/+1
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added string conversion op for amounts and balancesJohn Wiegley2009-11-201-0/+3
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-5/+1
|
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+9
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-1/+2
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+2
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-10/+15
|
* Whitespace fixJohn Wiegley2009-11-041-1/+1
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+10
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+2
| | | | | | | 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.
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-0/+2
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-4/+19
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+6
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-1/+2
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Restored the --budget optionJohn Wiegley2009-02-201-3/+3
|
* Removed an unnecessary assertJohn Wiegley2009-02-191-1/+0
| | | | It prevented the amount string "$1.00 " from being parsed.
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-1/+0
|
* Made (un)reduce rvalue methods more consistentJohn Wiegley2009-02-121-2/+2
| | | | | | They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-0/+1
|
* amount_t::in_place_* now returns void. Added value_t::unreduce.John Wiegley2009-02-071-3/+3
|
* Fixed some #include ordering issues.John Wiegley2009-02-071-14/+0
|
* Whitespace fix.John Wiegley2009-02-071-3/+2
|
* Only initialize the amount_t module if it hasn't been already.John Wiegley2009-02-061-0/+2
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-69/+45
|
* Removed unneeded member variables.John Wiegley2009-02-041-2/+0
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-45/+0
|
* Added documentation stubs for all include files and classes.John Wiegley2009-01-311-1/+1
|
* Added a more efficient amount_t::operator==, which changed semantics slightly.John Wiegley2009-01-311-6/+0
|