lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/007 b480490b 13/18: Distinguish two ledger f


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/007 b480490b 13/18: Distinguish two ledger formats
Date: Sun, 24 Apr 2022 18:46:15 -0400 (EDT)

branch: valyuta/007
commit b480490b82ad9e2b79f4aa576271b8e450e40aca
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}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]