lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 8fb170c 2/3: Round result of mce_pmt_table pr


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8fb170c 2/3: Round result of mce_pmt_table premium strategy
Date: Thu, 13 Aug 2020 14:11:17 -0400 (EDT)

branch: master
commit 8fb170c1e1e13edb9b55ea78047d43fa62b538bb
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Round result of mce_pmt_table premium strategy
    
    Other strategies were already rounded.
    
    Chose round_gross_premium() for this strategy. Other strategies use
    various rounding functions. 7702 and 7702A establish bright-line tests,
    and the corresponding strategies take care to stay on the right side of
    that line. Some others (BasicValues::GetModalPremTgtFromTable(), e.g.)
    do peculiar things like
        round_max_premium() (ldbl_eps_plus_one_times(calculated_value))
    but probably should instead use round_gross_premium() without any weird
    epsilon adjustments.
---
 ihs_basicval.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 2dea9a3..cec8a0a 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -971,12 +971,13 @@ double BasicValues::GetModalPremProxyTable
     ,double      a_table_multiplier
     ) const
 {
-    return
+    return round_gross_premium()
+        (
           a_specamt
         * MortalityRates_->GroupProxyRates()[a_year]
         * a_table_multiplier
         / a_mode
-        ;
+        );
 }
 
 /// Calculate premium using a corridor ratio.



reply via email to

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