[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8970fa16: Fix defect introduced 20220527T2115
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8970fa16: Fix defect introduced 20220527T2115Z: incorrect example |
Date: |
Sat, 28 May 2022 20:47:08 -0400 (EDT) |
branch: master
commit 8970fa16d53d2bcc18d6ab2a288db745e5eabf8b
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20220527T2115Z: incorrect example
An example in commit ee120a2d83083 of 20220527T2115Z was typed
incorrectly. Fixed.
For the 100000.0 != 10.0^5 example, see:
https://stackoverflow.com/questions/9704195/why-pow10-5-9-999-in-c
For the 2.0^0.5 != sqrt(2.0) example, see:
https://sourceforge.net/p/mingw-w64/mailman/message/27433907/
https://mingw-w64-public.narkive.com/GIYdbs2d/math-library-discrepancies-that-surprised-me
---
tn_range.tpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tn_range.tpp b/tn_range.tpp
index 83fb7ab7..fae1aab7 100644
--- a/tn_range.tpp
+++ b/tn_range.tpp
@@ -194,7 +194,7 @@ namespace
// perform this constant calculation at compile time.
// Thus, the historical untrustworthiness of MinGW-w64's
// pow(), e.g.:
- // pow(100.0, 2.0) != 100.0
+ // pow(10.0, 5.0) != 100000.0
// pow(2.0, 0.5) != sqrt(2.0)
// shouldn't matter.
static T const z0 = std::pow
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 8970fa16: Fix defect introduced 20220527T2115Z: incorrect example,
Greg Chicares <=