[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [4857] Fix defect introduced 20050409T1620Z
From: |
Greg Chicares |
Subject: |
[lmi-commits] [4857] Fix defect introduced 20050409T1620Z |
Date: |
Sat, 24 Apr 2010 01:07:54 +0000 |
Revision: 4857
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4857
Author: chicares
Date: 2010-04-24 01:07:53 +0000 (Sat, 24 Apr 2010)
Log Message:
-----------
Fix defect introduced 20050409T1620Z
Modified Paths:
--------------
lmi/trunk/my_rnd.cpp
Modified: lmi/trunk/my_rnd.cpp
===================================================================
--- lmi/trunk/my_rnd.cpp 2010-04-23 23:35:01 UTC (rev 4856)
+++ lmi/trunk/my_rnd.cpp 2010-04-24 01:07:53 UTC (rev 4857)
@@ -43,32 +43,20 @@
#include "data_directory.hpp"
-// TODO ?? It would be better to call rounding_rules::write_rounding_files()
-// here than to duplicate what it does.
-
-//============================================================================
void rounding_rules::write_proprietary_rounding_files()
{
- // Sample policy form.
+ // Sample product.
rounding_rules sample;
+// Not necessary for 'sample' product only, because it's built in.
+// sample.Write(AddDataDir("sample.rounding"));
- sample.round_specamt_ = round_to<double>(0, r_upward );
- sample.round_death_benefit_ = round_to<double>(2, r_to_nearest);
- sample.round_naar_ = round_to<double>(2, r_to_nearest);
- sample.round_coi_rate_ = round_to<double>(8, r_downward );
- sample.round_coi_charge_ = round_to<double>(2, r_to_nearest);
- sample.round_gross_premium_ = round_to<double>(2, r_to_nearest);
- sample.round_net_premium_ = round_to<double>(2, r_to_nearest);
- sample.round_interest_rate_ = round_to<double>(0, r_not_at_all);
- sample.round_interest_credit_ = round_to<double>(2, r_to_nearest);
- sample.round_withdrawal_ = round_to<double>(2, r_to_nearest);
- sample.round_loan_ = round_to<double>(2, r_to_nearest);
- sample.round_corridor_factor_ = round_to<double>(2, r_to_nearest);
- sample.round_surrender_charge_= round_to<double>(2, r_to_nearest);
- sample.round_irr_ = round_to<double>(5, r_downward );
-
- sample.Write(AddDataDir("sample.rounding"));
-
- // Another policy form....
+#if 0
+ // Template for adding another policy form.
+ rounding_rules another;
+ another.round_specamt_ = round_to<double>(0, r_upward );
+ another.round_death_benefit_ = round_to<double>(2, r_to_nearest);
+ // ...
+ another.Write(AddDataDir("another.rounding"));
+#endif // 0
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [4857] Fix defect introduced 20050409T1620Z,
Greg Chicares <=