lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master eea9469 02/23: Ignore an immaterial i686 devi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master eea9469 02/23: Ignore an immaterial i686 deviation
Date: Tue, 27 Jul 2021 21:59:50 -0400 (EDT)

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

    Ignore an immaterial i686 deviation
---
 financial_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/financial_test.cpp b/financial_test.cpp
index 0324a57..b7cd882 100644
--- a/financial_test.cpp
+++ b/financial_test.cpp
@@ -187,9 +187,9 @@ int test_main(int, char*[])
     std::vector<double> q{p};
     q.push_back(-b.back());
     // This NPV is -9.777068044058979E-12 in a gnumeric spreadsheet,
-    // versus -9.86988e-014 with MinGW-w64 gcc-6.3.0; the 1e-13
-    // tolerance is simply the materially_equal() default.
-    LMI_TEST(std::fabs(pv(q.begin(), q.end(), results.back())) <= 1e-13);
+    // versus -9.86988e-014 with MinGW-w64 gcc-6.3.0
+    // versus  3.6593e-013  with i686-w64-mingw32 gcc-10.0
+    LMI_TEST(std::fabs(pv(q.begin(), q.end(), results.back())) <= 1e-12);
 
     // Trivially, NPV at 0% interest is summation.
     LMI_TEST(materially_equal(-4950.0L, pv(q.begin(), q.end(), 0.0)));



reply via email to

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