[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion |
Date: |
Tue, 26 Jan 2021 08:12:31 -0500 (EST) |
branch: master
commit e50788202c20336afa4342c49268704ad613a5cc
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Remove a useless assertion
Given this in 'ihs_avsolve.cpp':
// No amount solved for can plausibly reach one billion dollars.
double upper_bound = 999999999.99;
it is not helpful to assert that a solved-for amount is less than 1e100.
Incidentally dblize()'d this value for posting to the ledger.
---
ihs_acctval.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 8abf703..4465016 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -253,8 +253,7 @@ void AccountValue::SetGuarPrem()
{
GuarPremium = SolveGuarPremium();
}
- LMI_ASSERT(GuarPremium < 1.0e100);
- ledger_->SetGuarPremium(GuarPremium);
+ ledger_->SetGuarPremium(dblize(GuarPremium));
}
//============================================================================
- [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, 2021/01/26
- [lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion,
Greg Chicares <=
- [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