summaryrefslogtreecommitdiff
path: root/src/amount.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Removed the special "one" variable, and added amount_t::inverted().John Wiegley2009-01-311-2/+2
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-41/+12
|
* Several corrections to the way rationals are handled.John Wiegley2009-01-311-0/+2
|
* Changed to using rational numbers instead of integer approximations.John Wiegley2009-01-301-0/+12
| | | | | As a result, dependency on the gdtoa was dropped, and dependency on mpfr was added.
* Whitespace fix.John Wiegley2009-01-301-2/+2
|
* Removed all dependency on gdtoa.John Wiegley2009-01-301-21/+3
|
* Updated comments and other whitespace changes.John Wiegley2009-01-301-432/+358
|
* Stopped using the generic "unsigned int" in favor of more specific types.John Wiegley2009-01-291-2/+2
|
* Update Doxygen documentation. Still much more work to be done.John Wiegley2009-01-291-170/+270
|
* Revised the way that parsing flags get passed around.John Wiegley2009-01-291-6/+25
|
* amount_t and commodity_t objects can now stream themselves to XML.John Wiegley2009-01-281-0/+3
|
* Reorganized Ledger so that it builds as 7 separate libraries. This is mainlyJohn Wiegley2009-01-251-3/+3
| | | | to prove to myself that it has proper decoupling between prior code areas.
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Added argument to amount_t::value() for request a market value in terms of aJohn Wiegley2009-01-191-5/+8
| | | | specific commodity.
* Create an unrounded global amount variable 'one' for creating inverse priceJohn Wiegley2009-01-191-0/+2
| | | | mappings.
* Change default precision extension back to 6, rather than rewriting all of theJohn Wiegley2008-11-231-1/+1
| | | | unit tests. 6 was good enough.
* Abstracted precision extension constant, and added a note that precision mustJohn Wiegley2008-11-231-0/+6
| | | | | be handled differently, since paying attention to places after the decimal is not enough.
* Cleaned up the way that commodity pricing is handled.John Wiegley2008-09-201-0/+6
|
* Added in_place_round method to all Ledger numerical types.John Wiegley2008-09-141-2/+14
|
* Removed more "pending" type comments.John Wiegley2008-08-171-4/+4
|
* Removed all pending todos from the amount_t code.John Wiegley2008-08-171-5/+7
|
* The Python interface layer is building again.John Wiegley2008-08-071-1/+1
|
* Updated the Doxygen docs so that all the core numerics files are in the sameJohn Wiegley2008-08-051-0/+6
| | | | module group.
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+748
is in doc/, etc.