summaryrefslogtreecommitdiff
path: root/src/amount.cc
Commit message (Expand)AuthorAgeFilesLines
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+73
* 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
* More refactoring for --downloadJohn Wiegley2009-06-241-4/+13
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+2
* 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
* Ignore attempts to annotate the null commodityJohn Wiegley2009-06-151-1/+1
* 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
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-14/+21
* 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
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-48/+46
* Propagate commodity flags in costs sometimesJohn Wiegley2009-02-241-5/+3
* 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
* Added --exchange (-x) optionJohn Wiegley2009-02-221-5/+11
* 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
* Removed all dependency on gdtoa.John Wiegley2009-01-301-12/+0