summaryrefslogtreecommitdiff
path: root/src/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Corrected a potential invalid memory accessJohn Wiegley2009-02-281-4/+7
|
* Fix to amount unreduction (aka, 120m -> 2h)John Wiegley2009-02-271-3/+4
|
* Be smarter about trimming off trailing zeroesJohn Wiegley2009-02-271-6/+7
|
* Don't propagate display flags from cost amountsJohn Wiegley2009-02-271-4/+4
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-14/+8
|
* Refinements to amount_t validation codeJohn Wiegley2009-02-271-8/+13
|
* Allow uncommoditized amounts to +/- with an amountJohn Wiegley2009-02-251-6/+10
| | | | Thus, you can say "$100 + 10" to increase it by $10.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-48/+46
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Propagate commodity flags in costs sometimesJohn Wiegley2009-02-241-5/+3
| | | | | If a commodity has never been seen before, and it is used in a cost amount, remember the display flags.
* Be smarter about printing uncommoditized amountsJohn Wiegley2009-02-241-4/+23
|
* Fixes to the way annotated prices are displayedJohn Wiegley2009-02-241-12/+6
|
* Made commodity reduction during parsing consistentJohn Wiegley2009-02-241-5/+15
|
* Many fixes to --market and --exchangeJohn Wiegley2009-02-221-5/+18
| | | | Also, --exchange now accepted multiple, comma-separated commodities.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-5/+11
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-14/+0
|
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-1/+0
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-0/+15
|
* Rewrote the "entry" command. It's ALIVE!John Wiegley2009-02-111-2/+2
|
* amount_t::in_place_* now returns void. Added value_t::unreduce.John Wiegley2009-02-071-6/+3
|
* Fixed some #include ordering issues.John Wiegley2009-02-071-0/+10
|
* Only initialize the amount_t module if it hasn't been already.John Wiegley2009-02-061-9/+16
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-52/+25
|
* Removed unneeded member variables.John Wiegley2009-02-041-8/+2
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-220/+0
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-5/+7
|
* Corrected the way that thousands markers are output.John Wiegley2009-01-311-6/+10
|
* amount_t::is_zero() wasn't checking for '-'.John Wiegley2009-01-311-1/+1
|
* Made amount_t::is_zero() slightly more efficient.John Wiegley2009-01-311-1/+12
|
* Added a more efficient amount_t::operator==, which changed semantics slightly.John Wiegley2009-01-311-0/+12
|
* Removed the special "one" variable, and added amount_t::inverted().John Wiegley2009-01-311-6/+12
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-526/+58
|
* Several corrections to the way rationals are handled.John Wiegley2009-01-311-89/+107
|
* Changed to using rational numbers instead of integer approximations.John Wiegley2009-01-301-109/+378
| | | | | As a result, dependency on the gdtoa was dropped, and dependency on mpfr was added.
* Removed all dependency on gdtoa.John Wiegley2009-01-301-12/+0
|
* Updated comments and other whitespace changes.John Wiegley2009-01-301-27/+13
|
* Stopped using the generic "unsigned int" in favor of more specific types.John Wiegley2009-01-291-1/+1
|
* Update Doxygen documentation. Still much more work to be done.John Wiegley2009-01-291-1/+1
|
* Revised the way that parsing flags get passed around.John Wiegley2009-01-291-9/+9
|
* amount_t and commodity_t objects can now stream themselves to XML.John Wiegley2009-01-281-0/+16
|
* Moved sha1 and gdtoa inclusions into system.hh.John Wiegley2009-01-241-3/+0
|
* Include gdtoa.h if it's being used.John Wiegley2009-01-231-0/+3
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Changed COMMODITY_STYLE_NOMARKET TO COMMODITY_NOMARKET.John Wiegley2009-01-191-2/+2
|
* Changed COMMODITY_STYLE_BUILTIN to COMMODITY_BUILTIN, and added new flagJohn Wiegley2009-01-191-1/+1
| | | | COMMODITY_WALKED, for avoiding infinite recursions during price lookups.
* Added argument to amount_t::value() for request a market value in terms of aJohn Wiegley2009-01-191-3/+3
| | | | specific commodity.
* Create an unrounded global amount variable 'one' for creating inverse priceJohn Wiegley2009-01-191-3/+9
| | | | mappings.
* Added a missing call to _dup() in amount_t::in_place_round. Thanks to unitJohn Wiegley2008-11-231-0/+1
| | | | testing!
* Abstracted precision extension constant, and added a note that precision mustJohn Wiegley2008-11-231-8/+17
| | | | | be handled differently, since paying attention to places after the decimal is not enough.
* Did more restructing of commodity price histories, although the completedJohn Wiegley2008-09-211-1/+1
| | | | find_price does not work yet.
* Created several alternate 'value' methods to support the upcoming commodityJohn Wiegley2008-09-211-1/+2
| | | | valuation changes.