[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master af0666c3 24/27: Distinguish two ledger format
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master af0666c3 24/27: Distinguish two ledger formats |
Date: |
Mon, 25 Apr 2022 12:56:18 -0400 (EDT) |
branch: master
commit af0666c3c56cd2529810a5c0776512fff2a97642
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Distinguish two ledger formats
Even if "F0" is implemented the same way as "F1" now, the notional
difference is noteworthy and may affect any reimplementation.
---
ledger_evaluator.cpp | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index e9e23b1c..f97cd49b 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -484,12 +484,11 @@ format_map_t static_formats()
,{"InitPrem" , f6}
,{"InitTgtPrem" , f6}
,{"ListBillPremium" , f6}
-// F1: zero decimals, commas
-// > Format as a number with thousand separators and no decimal places
(#,###,###)
+// F0: zero decimals
+// > Format as a number with no thousand separator or decimal point (##0)
,{"Age" , f1}
,{"AllowGroupQuote" , f1}
,{"AvgFund" , f1}
- ,{"ChildRiderAmount" , f1}
,{"Composite" , f1}
,{"CustomFund" , f1}
,{"EndtAge" , f1}
@@ -535,6 +534,9 @@ format_map_t static_formats()
,{"TxCallsGuarUwSubstd" , f1}
,{"UsePartialMort" , f1}
,{"WriteTsvFile" , f1}
+// F1: zero decimals, commas
+// > Format as a number with thousand separators and no decimal places
(#,###,###)
+ ,{"ChildRiderAmount" , f1}
// F5: zero decimals, commas, cents to dollars
// > Format as a number with thousand separators and no decimal places
(#,###,###)
,{"Dumpin" , f5}
@@ -589,9 +591,10 @@ format_map_t static_formats()
,{"MlySAIntRate" , f4}
,{"TotalIMF" , f4}
// F0: zero decimals
-// > Format as a number no thousand separator or decimal point (##0%)
+// > Format as a number with no thousand separator or decimal point (##0)
,{"AttainedAge" , f1}
,{"Duration" , f1}
+ ,{"FundNumbers" , f1}
,{"PolicyYear" , f1}
// F2: two decimals, commas
// > Format as a number with thousand separators and two decimal places
(#,###,###.00)
@@ -614,7 +617,6 @@ format_map_t static_formats()
// ,{"EeMode" , f1} // Not numeric.
// ,{"ErMode" , f1} // Not numeric.
,{"ExpenseCharges" , f1}
- ,{"FundNumbers" , f1}
,{"Loads" , f1}
,{"NaarForceout" , f1}
,{"NetClaims" , f1}
- [lmi-commits] [lmi] master 20297761 05/27: Add a new ledger emission option, (continued)
- [lmi-commits] [lmi] master 20297761 05/27: Add a new ledger emission option, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d4083917 07/27: Test eleven farraginous files nychthemerally, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d195c7af 10/27: Add a unit test for ledger_format(), Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 3064fee4 09/27: Add a helper function with a deliberately ugly name, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 37b663fe 11/27: Add an option to format cents as decimal dollars, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 550db6d9 15/27: Record speed measurements, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master a7d075cd 16/27: Document, suppress, or expunge unused formats, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master fdb47029 08/27: Fix dblize()ation in commented-out code, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 174198af 12/27: Reformat, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master dcbe9418 14/27: Change currency fields in ledger to integral cents, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master af0666c3 24/27: Distinguish two ledger formats,
Greg Chicares <=
- [lmi-commits] [lmi] master 7b30e2d8 03/27: Filter unexpectedly small system-test discrepancies, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d7ab80c6 04/27: Clean up beforehand, not afterward, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 12192723 06/27: Add two new ledger emission options, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 119df7a9 13/27: Add a 'divisor' argument to LedgerBase::value_str(), Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 2b108ed7 18/27: Avoid unnecessary rounding, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master b7c61b4d 20/27: Regularize format names, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 8de190ce 17/27: Regularize whitespace, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 0b6a3b69 02/27: Avoid writing " \n", Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 95b4e917 19/27: Remove an unnecessary comment, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 61f6a237 21/27: Reorder format-style map, Greg Chicares, 2022/04/25