From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ac6504560f5ef27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-05 04:45:06 PST Message-ID: <40487646_1@127.0.0.1> From: pburnand0-news@yahoo.com Subject: Re: Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types? Newsgroups: comp.lang.ada Reply-To: pburnand0-news@yahoo.com Date: Fri, 05 Mar 2004 14:29:42 +0100 References: <4046b474_1@127.0.0.1> User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Authenticated-User: $$laz_wrsc X-Comments: This message was posted through Newsfeed.com X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to You may also use our online abuse reporting from: http://www.newsfeed.com/abuseform.htm X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) Organization: Newsfeed.com http://www.newsfeed.com 100,000+ UNCENSORED Newsgroups. Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!news-out2.nuthinbutnews.com!local!corp-news!not-for-mail Xref: archiver1.google.com comp.lang.ada:6078 Date: 2004-03-05T14:29:42+01:00 List-Id: Marius Amado Alves wrote: >> ... Also, there is a small performance penalty paid for >> shuffling bits around to achieve platform independence. > > But surely less than converting to an ASCII image and back. (I suspect > that, contrary to what has been indicated, the significant performance > loss in the ASCII solution is of time, not space.) It could be, but it depends largely of the numbers to represent... If you represent the number "1.0", it requires 4 bytes (with string terminator). If you have the number "1.33333333333333333333333e+05", it could need 30 or more characters to store... About the time penalty, it's usually not a problem. If someone wants to pass numbers between different environnments, it's usually necessary to write them to a file, to send them through a network connection, or something else. In such a case, the time needed to convert the number is negligible regarding to the time needed by IO operations...