summaryrefslogtreecommitdiff
path: root/src/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix amount tokenizer re: embedded minus sign.Donald Lam2021-05-021-2/+9
| | | | | An amount may have a (single) leading minus sign, but none after that. Bug #2001 (and #1809).
* Fix typos in commentsMartin Michlmayr2020-05-211-2/+2
|
* Don't attempt to invert a value if it's already zero (#1703)John Wiegley2019-01-111-1/+3
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* The "format" directive for commodities now disables "style observation"John Wiegley2018-01-011-1/+3
|
* [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-79/+0
| | | | and all boost serialisation related code.
* 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}/"
* Unify debugging categoriesMartin Michlmayr2014-07-011-4/+4
| | | | | Debugging categories follow the filename, which in this case is singular (rather than plural) "account" and "amount".
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Apply --time-colon option only to time commoditiesAlexis Hildebrandt2013-09-071-5/+5
| | | | See #989
* Resolve new compiler warnings from ClangJohn Wiegley2013-05-191-0/+2
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-5/+3
| | | | | | | | | | | | 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-14/+15
| | | | Fixes Bug634 by adding roundto(amount, places).
* Merge pull request #107 from afh/pull/time_colonJohn Wiegley2013-01-291-2/+21
|\ | | | | Add --time-colon option
| * Add --time-colon optionAlexis Hildebrandt2012-11-101-2/+21
| | | | | | | | | | | | | | | | | | The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15.
* | whitespace cleanupJohann Klähn2013-01-161-1/+1
|/
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-3/+20
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Changed all ASSERTS_ON -> !NO_ASSERTSJohn Wiegley2012-05-201-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-7/+7
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-7/+5
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-6/+6
|
* Whitespace fixJohn Wiegley2012-03-301-4/+4
|
* Never price commodities using annotated commoditiesJohn Wiegley2012-03-301-3/+3
|
* Improved some error messagesJohn Wiegley2012-03-291-10/+8
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-5/+5
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-12/+7
|
* Added syntactic sugar for lot pricing: {{$500.00}}John Wiegley2012-03-101-4/+8
|
* Added amount_t::commodity_ptr()John Wiegley2012-03-091-2/+7
|
* Made amount_t::price return an optional<amount_t>John Wiegley2012-03-071-2/+2
|
* Corrected several compile and link problemsJohn Wiegley2012-03-061-0/+2
|
* Changed the category of a few DEBUG statementsJohn Wiegley2012-03-061-4/+4
|
* Use unique_ptr instead of std::auto_ptrJohn Wiegley2012-03-051-2/+2
|
* All tests are working again but oneJohn Wiegley2012-03-051-6/+3
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-4/+8
|
* Fixes for variable shadowing (5/28)John Wiegley2012-02-171-3/+3
|
* Fixes for variable shadowing (4/28)John Wiegley2012-02-171-4/+4
|
* Fixes for variable shadowing (3/28)John Wiegley2012-02-171-4/+4
|
* Use GMP_* macros instead of MPFR_*John Wiegley2011-11-051-9/+9
|
* amount_t::in_place_floor should round toward zeroJohn Wiegley2011-10-111-11/+12
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* Removed unused variablesJohn Wiegley2011-08-181-5/+1
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-3/+2
|
* Minor simplifications to valexpr parserJohn Wiegley2010-09-051-2/+4
| | | | | The most significant change is the way CONS sequences are parsed, and that now instead of =/:=, the operators are ==/=.
* Added debug print for commodity.prices.findJohn Wiegley2010-06-201-0/+2
|
* Made amount_t::value a bit saferJohn Wiegley2010-06-191-5/+6
|
* Untabified all source filesJohn Wiegley2010-06-111-190/+190
|