From: Date: April 2 2008 2:41am Subject: RE: Loss of float precision List-Archive: http://lists.mysql.com/plusplus/7553 Message-Id: <5AA52B773286DA4E83B1F2D034FFED3763C15C@mailexchange.klausatlanta.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks! You da man! BTW. I can't search the archives. Anything I search on returns no results. Can anyone else search? -----Original Message----- From: Warren Young [mailto:mysqlpp@stripped]=20 Sent: Tuesday, April 01, 2008 8:04 PM To: MySQL++ Mailing List Subject: Re: Loss of float precision Dave Bailey wrote: > If you view the raw file and look for the definition of >=20 > Item_func_ieee754_to_string::val_str(String *str) >=20 > the comment specifies that 17 digits of precision are needed for double. > It is also true that 9 digits are needed for single precision. I didn't > believe > it, but I tested it once with every possible value of a single precision > float > and found that there were cases where 8 digits was not enough to support > a lossless conversion from float to string and back. Well, OK... :) The patch is in svn now. --=20 MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=3Djwallace@stripped