[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals |
Date: |
Wed, 26 Aug 2020 20:09:02 -0400 (EDT) |
branch: master
commit a5279b7b3e7b4deb081299620c8f85fb24c67aec
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Round gross and net withdrawals
---
ihs_avmly.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 911ff3c..330aaeb 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -2332,7 +2332,7 @@ void AccountValue::TxTakeWD()
if(Solving || mce_run_gen_curr_sep_full == RunBasis_)
{
- NetWD = std::min(RequestedWD, MaxWD);
+ NetWD = round_withdrawal()(std::min(RequestedWD, MaxWD));
OverridingWD[Year] = NetWD;
}
else
@@ -2458,7 +2458,7 @@ void AccountValue::TxTakeWD()
return;
}
- GrossWD = NetWD + std::min(WDFee, NetWD * WDFeeRate);
+ GrossWD = round_withdrawal()(NetWD + std::min(WDFee, NetWD * WDFeeRate));
// Free partial surrenders: for instance, the first 20% of account
// value might be withdrawn each policy year free of surrender
@@ -2479,7 +2479,7 @@ void AccountValue::TxTakeWD()
non_free_wd = std::max(0.0, GrossWD - free_wd);
}
double partial_surrchg = non_free_wd * surrchg_proportion;
- GrossWD += partial_surrchg;
+ GrossWD += round_withdrawal()(partial_surrchg);
process_distribution(GrossWD);
Dcv -= GrossWD;
- [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 <=
- [lmi-commits] [lmi] master 110f4b9 7/7: Round apportioned AV increments, Greg Chicares, 2020/08/26
- [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