lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 7ad30de 2/6: Reformat


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 7ad30de 2/6: Reformat
Date: Mon, 25 Jan 2021 12:11:01 -0500 (EST)

branch: valyuta/005
commit 7ad30dee125a927875825e38ffcd76095c825a66
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Reformat
    
    Rewrote a couple of long lines to make their meaning plain, and to make
    no non-copyright line in this file exceed eighty characters (which is
    desirable when easily achieved).
---
 round_to.hpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/round_to.hpp b/round_to.hpp
index 2264b7a..5c3bf26 100644
--- a/round_to.hpp
+++ b/round_to.hpp
@@ -375,7 +375,8 @@ template<typename RealType>
 inline RealType round_to<RealType>::operator()(RealType r) const
 {
     return static_cast<RealType>
-        (rounding_function_(static_cast<RealType>(r * scale_fwd_)) * 
scale_back_
+        ( rounding_function_(static_cast<RealType>(r * scale_fwd_))
+        * scale_back_
         );
 }
 
@@ -393,7 +394,8 @@ template<typename RealType>
 inline currency round_to<RealType>::c(RealType r) const
 {
     RealType const z = static_cast<RealType>
-        (rounding_function_(static_cast<RealType>(r * scale_fwd_)) * 
scale_back_cents_
+        ( rounding_function_(static_cast<RealType>(r * scale_fwd_))
+        * scale_back_cents_
         );
 #if defined USE_CURRENCY_CLASS
     // CURRENCY !! static_cast: possible range error



reply via email to

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