Carsten Haitzler (The Rasterman) schrieb: > On Fri, 28 Mar 2008 19:42:38 +0100 Peter Wehrfritz <[EMAIL PROTECTED]> > babbled: > > >> Carsten Haitzler (The Rasterman) schrieb: >> >>> (floating point numbers may lose accuracy as they are decoded as >>> decimal and thus when encoded again may not be exactly the same). >>> >>> >> Afaik, there is no accuracy loss if you convert a hexadecimal (or >> binary) number into a decimal number since 10 has 2 as a prime factor. I >> don't know, however, how many digits you will need. Bigger problem could >> be that eet use %f instead of %e. So really big or really small numbers >> are not covered. >> > > sure - so when you are editing your text representation - you really want to > edit floats in hex... right? :) point is the text is to make it human > readable/editable as people seem to bitch a lot. there is no other use for it > as the files are portable as-is in binary. > Well, I don't want it to have hex output. My point was that if you convert 2-adic numbers to 10-adic numbers you don't have a loss of accuracy. Of course the revers doesn't work if someone will edit the file later and change it to a 10-adic number that is not representable as a 2-adic number.
Peter ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel