Date: Friday, March 10, 2006 @ 14:48:27
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: ParameterStatement.cpp (1.25 -> 1.26)

Better explanation about the number of digits required for float serialization 
to strings.


------------------------+
 ParameterStatement.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: carob/src/ParameterStatement.cpp
diff -u carob/src/ParameterStatement.cpp:1.25 
carob/src/ParameterStatement.cpp:1.26
--- carob/src/ParameterStatement.cpp:1.25       Mon Mar  6 13:43:23 2006
+++ carob/src/ParameterStatement.cpp    Fri Mar 10 14:48:27 2006
@@ -230,11 +230,15 @@
 
 // Partial specialization code shared by float & double
 
-// std::numeric_limits<...>::digits10 is not the precision we want, cause
+// std::numeric_limits<...>::digits10 is NOT the precision we want, cause
 // digits10 is the maximum number of base10 digits that (float|double)
 // can hold without loss, whereas we want the opposite: the minimum
 // number of base10 digits required to describe any (float|double
 // value) without loss.
+// Let's put it in another way: digits10 matters when you want to go
+// from base10 to floating-point and back to base10 without loss.
+// What we do here is to go from floating-point to base10 and back to
+// floating point.
 
 // g++ 4.0.2 defines for instance:
 // <float>::digits10 = 6 and <double>::digits10 = 15

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

Reply via email to