From: pburnand0-news@yahoo.com
Subject: Re: Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types?
Date: Fri, 05 Mar 2004 14:29:42 +0100
Date: 2004-03-05T14:29:42+01:00 [thread overview]
Message-ID: <40487646_1@127.0.0.1> (raw)
In-Reply-To: mailman.61.1078405265.327.comp.lang.ada@ada-france.org
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...
prev parent reply other threads:[~2004-03-05 13:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-25 9:38 Little Endian -> Big Endian (Ada95 / GNAT) James Amor
2004-02-25 12:23 ` David C. Hoos
2004-02-26 15:43 ` James Amor
2004-02-26 5:59 ` Simon Wright
2004-02-27 20:38 ` Guillaume Foliard
2004-02-28 11:27 ` Little Endian -> Big Endian (Ada95 / GNAT), Whats with floating point types? Joachim Schr�er
2004-02-29 16:32 ` Simon Wright
2004-03-04 5:32 ` pburnand0-news
2004-03-04 11:55 ` Little Endian -> Big Endian (Ada95 / GNAT),Whats " David C. Hoos
2004-03-04 13:12 ` Little Endian -> Big Endian (Ada95 / GNAT), Whats " Marius Amado Alves
2004-03-04 17:51 ` Warren W. Gay VE3WWG
2004-03-04 18:34 ` Hyman Rosen
2004-03-05 17:40 ` Warren W. Gay VE3WWG
2004-03-05 17:50 ` Warren W. Gay VE3WWG
2004-03-05 13:48 ` pburnand0-news
2004-03-05 17:34 ` Warren W. Gay VE3WWG
2004-03-05 17:53 ` Warren W. Gay VE3WWG
2004-03-05 13:29 ` pburnand0-news [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox