Date: Wednesday, February 1, 2006 @ 12:20:20
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: ParameterStatement.cpp (1.18 -> 1.19)

Added reference to relevant floating-point paper in comments.


------------------------+
 ParameterStatement.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: carob/src/ParameterStatement.cpp
diff -u carob/src/ParameterStatement.cpp:1.18 
carob/src/ParameterStatement.cpp:1.19
--- carob/src/ParameterStatement.cpp:1.18       Mon Jan 30 22:46:17 2006
+++ carob/src/ParameterStatement.cpp    Wed Feb  1 12:20:19 2006
@@ -205,8 +205,10 @@
 // g++ 4.0.2 defines for instance:
 // <float>::digits10 = 6 and <double>::digits10 = 15
 
-// For IEEE754's floats the required base10 precision is 9 (nine),
-// and for IEEE754's doubles                       it's 17 (seventeen)
+// For IEEE754's floats the maximum required number of base10 digits is 9 
(nine),
+// and for IEEE754's doubles                                 it's 17 
(seventeen)
+// "What Every Computer Scientist Should Know About Floating Point Arithmetic"
+// 1991 - David Goldberg
 // We add one digit for some safety wrt to buggy converters (but if
 // they are really too buggy this won't be enough to save us)
 

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to