|
|
Choosing A Webhost: |
CVS update of carob/src (ParameterStatement.cpp): msg#00059db.carob.cvs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of libmysequoia (4 files), zsolt-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob/include (Statement.hpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob/include (CarobException.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/src (ParameterStatement.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|