lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 50a9a51 4/5: Always print an intended header


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 50a9a51 4/5: Always print an intended header line for 'math_functors_test'
Date: Thu, 27 Apr 2017 11:54:07 -0400 (EDT)

branch: master
commit 50a9a519caab20fc0f4b3d0baec6c9b6045696e9
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Always print an intended header line for 'math_functors_test'
    
    The header line
      annual rate corresponding to a 0.004 daily spread, by various methods
    had mistakenly been placed inside a conditional, so that it printed only
    when 'LMI_X87' was defined.
---
 math_functors_test.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/math_functors_test.cpp b/math_functors_test.cpp
index dfa979a..77e6ef3 100644
--- a/math_functors_test.cpp
+++ b/math_functors_test.cpp
@@ -151,11 +151,13 @@ struct coi_rate_from_q_naive
 void sample_results()
 {
     fenv_initialize();
-#if defined LMI_X87
-    fenv_precision(fe_ldblprec);
     std::cout
         << "\n  annual rate corresponding to a 0.004 daily spread"
         << ", by various methods\n"
+        ;
+#if defined LMI_X87
+    fenv_precision(fe_ldblprec);
+    std::cout
         << std::setprecision(20)
         << "    long double precision, expm1l and log1pl\n      "
         << net_i_from_gross<double,365>()(0.0, 0.004, 0.0) << '\n'



reply via email to

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