[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 01886b2 5/8: Round CSV "boost"
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 01886b2 5/8: Round CSV "boost" |
Date: |
Tue, 26 Jan 2021 08:12:31 -0500 (EST) |
branch: master
commit 01886b2c42c18ec9434a2fb35a48708fe6fe2d2e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Round CSV "boost"
Cash value can be "boosted" only by integral cents.
---
ihs_acctval.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index d86d3dc..8abf703 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -1052,9 +1052,7 @@ currency AccountValue::CSVBoost() const
+ yare_input_.CashValueEnhancementRate[Year]
;
LMI_ASSERT(0.0 <= z);
- return z * std::max(C0, TotalAccountValue());
- // CURRENCY !! This should be rounded.
-// return round_minutiae().c(z * std::max(C0, TotalAccountValue()));
+ return round_minutiae().c(z * std::max(C0, TotalAccountValue()));
}
//============================================================================
- [lmi-commits] [lmi] master updated (15ef269 -> 7066049), Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 557ac6e 3/8: Assert rather than assign, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 026214c 4/8: Solve for currency rather than double, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 62b80c4 7/8: Initialize honeymoon value as currency, not double, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 0b4b7ec 1/8: Don't use currency for amounts always converted to double, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 01886b2 5/8: Round CSV "boost",
Greg Chicares <=
- [lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master 7066049 8/8: Record speed measurements, Greg Chicares, 2021/01/26
- [lmi-commits] [lmi] master e7ab330 2/8: Store currency as such, Greg Chicares, 2021/01/26