X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox From: karl AT aspodata DOT se To: geda-user AT delorie DOT com Subject: Re: [geda-user] A fileformat library In-reply-to: References: <1512221837 DOT AA25291 AT ivan DOT Harhan DOT ORG> <20151222232230 DOT 12633 DOT qmail AT stuge DOT se> <0F6F1D0F-4F07-48EA-90FE-836EAD4E2354 AT noqsi DOT com> <0FCF3774-F93C-4BFF-BB61-636F75DCCACB AT noqsi DOT com> <20160105182120 DOT 3237F809D79B AT turkos DOT aspodata DOT se> <201601051829 DOT u05IT7TI021027 AT envy DOT delorie DOT com> Comments: In-reply-to "Peter Clifton (petercjclifton AT googlemail DOT com) [via geda-user AT delorie DOT com]" message dated "Tue, 05 Jan 2016 19:07:34 +0000." Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20160106090953.2D693809D79B@turkos.aspodata.se> Date: Wed, 6 Jan 2016 10:09:53 +0100 (CET) X-Virus-Scanned: ClamAV using ClamSMTP Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Peter Clifton: ... > Indeed... text representations of floating point numbers take a lot of > computation to turn into the correct binary machine value. This is one of > the main reasons big 3D models in STEP format are slow to load. (There are > lots of irrational numbers represented in text format, base 10). > > It is very easy to write a fast ASCII to double conversion, but only if you > make some assumptions and sacrifice accuracy. Doing correct conversion - > which yields the closest binary floating point number to the decimal > floating point number described is hard to preform correctly, and time > consuming. > > Hypothetically, I think the best compromise is a format which has a > lossless translation between text and binary representations. ... You can use hex, you don't have to convert it to/from base 10. Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57