summaryrefslogtreecommitdiff
path: root/src/amount.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactor basic_flags_t to ledger::flags::basic_tAlexis Hildebrandt2023-04-121-1/+1
|
* Refactor flag and pstream related types into ledger namespaceAlexis Hildebrandt2023-04-121-1/+1
|
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* typo and column alignmentspaette2023-01-231-1/+1
|
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Change header guard names to use `INCLUDED_` prefixPhil Newton2022-04-061-3/+3
| | | | Fixes #2049
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-10/+0
| | | | and all boost serialisation related code.
* Use same license text formatting in source filesAlexis Hildebrandt2014-12-271-2/+2
|
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-1/+1
| | | | | | | | | | | | As the format used by property trees to represent valid JSON and that for valid XML is too different and given that there are more requests for valid XML output I decided to pursue a quick fix and remove the json command in favor of a working xml command. See bug #782, #909, recent discussion on mailing list. JSON support is postponed until I or someone else finds time to work on this or the python bindings are more stable.
* 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.