[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 110f4b9 7/7: Round apportioned AV increments
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 110f4b9 7/7: Round apportioned AV increments |
Date: |
Wed, 26 Aug 2020 20:09:03 -0400 (EDT) |
branch: master
commit 110f4b9a03c08199123595616c179ddda387a13d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Round apportioned AV increments
---
ihs_avmly.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 0b5ec85..6baff52 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -333,8 +333,11 @@ void AccountValue::process_payment(double payment)
// portions of unloaned account value according to input allocations.
void AccountValue::IncrementAVProportionally(double increment)
{
- AVGenAcct += increment * GenAcctPaymentAllocation;
- AVSepAcct += increment * SepAcctPaymentAllocation;
+ increment = round_minutiae()(increment);
+ double genacct_increment = increment * GenAcctPaymentAllocation;
+ genacct_increment = round_minutiae()(genacct_increment);
+ AVGenAcct += genacct_increment;
+ AVSepAcct += increment - genacct_increment;
}
//============================================================================
- [lmi-commits] [lmi] master updated (061fa21 -> 110f4b9), Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 110f4b9 7/7: Round apportioned AV increments,
Greg Chicares <=
- [lmi-commits] [lmi] master 2b902eb 1/7: Refactor for clarity, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 3453e8d 2/7: Rename a local variable, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master d618023 3/7: Preserve total specamt when apportioning changes, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 53ebc6f 4/7: Round changes to specamt, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master ceaa572 6/7: Round apportioned AV decrements, Greg Chicares, 2020/08/26