[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 7ea80507 2/6: Prefer 'double' to 'long double
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 7ea80507 2/6: Prefer 'double' to 'long double' in a comment |
Date: |
Sat, 30 Apr 2022 09:13:22 -0400 (EDT) |
branch: master
commit 7ea805071ad0b5ce13036fd136566ccf7d0b0f74
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Prefer 'double' to 'long double' in a comment
---
math_functions.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/math_functions.hpp b/math_functions.hpp
index d268469c..f105865b 100644
--- a/math_functions.hpp
+++ b/math_functions.hpp
@@ -60,7 +60,7 @@ std::vector<T>& back_sum(std::vector<T>& v)
/// Divide integers, rounding away from zero.
///
/// This floating-point analogue may be useful for cross checking:
-/// long double z = (long double)numerator / (long double)denominator;
+/// double z = (double)numerator / (double)denominator;
/// return (T) (0 < z) ? std::ceil(z) : std::floor(z);
template<typename T>
- [lmi-commits] [lmi] master updated (92d90368 -> d7c5304d), Greg Chicares, 2022/04/30
- [lmi-commits] [lmi] master 57a1b38c 1/6: Improve documentation, Greg Chicares, 2022/04/30
- [lmi-commits] [lmi] master d7c5304d 6/6: Don't store unhelpful reciprocals, Greg Chicares, 2022/04/30
- [lmi-commits] [lmi] master 7ea80507 2/6: Prefer 'double' to 'long double' in a comment,
Greg Chicares <=
- [lmi-commits] [lmi] master 44707d65 3/6: Use only unsuffixed expm1() and log1p(), Greg Chicares, 2022/04/30
- [lmi-commits] [lmi] master 8e48e14a 5/6: Don't force long double type for reciprocals, Greg Chicares, 2022/04/30
- [lmi-commits] [lmi] master 58b87552 4/6: Don't force long double into double calculations, Greg Chicares, 2022/04/30