[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 256d614 2/3: Rename a local variable
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 256d614 2/3: Rename a local variable |
Date: |
Tue, 25 Aug 2020 19:18:01 -0400 (EDT) |
branch: master
commit 256d614835ae32c4c7d05c0ca2a0150fc58ef1b0
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Rename a local variable
'proportion' is easier to search for than 'ratio', and also more
descriptive in this case.
---
ihs_avmly.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 05f3db9..6869c47 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -279,12 +279,12 @@ void AccountValue::process_payment(double payment)
gross_1035 = External1035Amount + Internal1035Amount;
}
double gross_non_1035_pmts = GrossPmts[Month] - gross_1035;
- double er_ratio = 0.0;
+ double er_proportion = 0.0;
if(0.0 != gross_non_1035_pmts)
{
- er_ratio = ErGrossPmts[Month] / gross_non_1035_pmts;
+ er_proportion = ErGrossPmts[Month] / gross_non_1035_pmts;
}
- double er_net_pmt = er_ratio * payment;
+ double er_net_pmt = er_proportion * payment;
double ee_net_pmt = payment - er_net_pmt;
switch(ee_premium_allocation_method)