Afficher un message
Vieux 20/10/2007, 14h18   #4
Joachim Schmitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: About little big endian in C

"Charlie Gordon" <news@chqrlie.org> schrieb im Newsbeitrag
news:4719ed78$0$5073$426a74cc@news.free.fr...
> "Joachim Schmitz" <nospam.jojo@schmitz-digital.de> a écrit dans le message
> de news: ffcgov$ohv$1@online.de...
>>
>> "Charlie Gordon" <news@chqrlie.org> schrieb im Newsbeitrag
>> news:47195862$0$24602$426a34cc@news.free.fr...
>>> "Richard Heathfield" <rjh@see.sig.invalid> a écrit dans le message de
>>> news: t_KdnR8gONyx4ZfanZ2dnUVZ8taknZ2d@bt.com...
>>> <snip>
>>>> "Big endian" means that the most significant values come first in the
>>>> underlying representation. A good example is prices in a shop: when we
>>>> see
>>>> 39.99 on a pair of jeans, we know that it's about 40 currency units,
>>>> not
>>>> almost a hundred currency units. "Little endian" means that the least
>>>> significant values come first - and I suppose the obvious example would
>>>> be
>>>> UK date format: day/month/year.

>> Same format in the rest of Europe, only a different separator:
>> day.month.year
>> The UK format is pretty hard to distinguish from the US format

>
> France uses day/month/year as well.

Really? OK, learned something new then...

>>> As compared to the big endian notation year.month.day used for example
>>> in Japan,

>> The most sensible IMHO, makes sorting easiest.

>
> As long as year, month and day are formated with a fixed number of digits
> ;-)

Very true

>>> Yet in German, the reading order is different again: 42 is pronounced
>>> zwei und vierzig, big endian writing, little endian reading (for 2
>>> digits only ;-)

>> Actually for the last 2 digits of every number greater then 12.

>
> And for the low digit pairs in every group of three for larger numbers.

Ah, yes, indeed. As I said: a confusing and (therefor) broken concept...


  Réponse avec citation
 
Page generated in 0,05465 seconds with 9 queries