[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
- [lmi-commits] [lmi] valyuta/005 updated (9e42155 -> e7a64aa), Greg Chicares, 2021/01/25
- [lmi-commits] [lmi] valyuta/005 e7a64aa 6/6: Resolve some gratuitous incompatibilities with master, Greg Chicares, 2021/01/25
- [lmi-commits] [lmi] valyuta/005 eccb63a 1/6: Rename a function, Greg Chicares, 2021/01/25
- [lmi-commits] [lmi] valyuta/005 b0912f5 5/6: Cache all product files, for illustrations at least, Greg Chicares, 2021/01/25
- [lmi-commits] [lmi] valyuta/005 9660d28 3/6: Change some parameter names for concinnity, Greg Chicares, 2021/01/25
- [lmi-commits] [lmi] valyuta/005 7ad30de 2/6: Reformat,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/005 7454e60 4/6: Import various improvements from 'master', Greg Chicares, 2021/01/25