[erlang-questions] Endian numbers

Bengt Kleberg bengt.kleberg@REDACTED
Mon Dec 20 08:59:21 CET 2010


http://en.wikipedia.org/wiki/Endianness


bengt

On Sun, 2010-12-19 at 04:31 +0100, Gilberio Carmenates García wrote:
> Hi all,
> 
> I’ve been always wondering that is the meaning of endian term, for
> example in the Bit syntax
> 
>  
> 
> {<<16#12345678:32/big>>,<<16#12345678:32/little>>,
> 
> <<16#12345678:32/native>>,<<16#12345678:32>>}.
> 
> {<<18,52,86,120>>,<<120,86,52,18>>,
> 
> <<120,86,52,18>>,<<18,52,86,120>>}
> 
>  
> 
> What is the meaning of that I mean what is the different between big,
> little or native. And the different endian machines. In the JInterface
> there is a reference to that term too, the big endian the little
> endian and so on.
> 
> Could anybody explain this to me, I need to now that very well so I
> can put that in my book.
> 
>  
> 
>  
> 
> Regards,
> 
>  
> 
> Ivan.
> 
>  
> 
> -------------------------------------------------------------------------------------------------------------
> 
> Ing: Ivan Carmenates García
> 
> Current project: ExtendedVisualOtp and Erlang Book: "Erlang Avanzado
> para principiantes"
> 
> Ivanco Software Company in association with SPI Team
> 
> spi_red32LogoSPI
> 
>  
> 
>  
> 
>  
> 
> 
> 
> =======================================================================
> Este mensaje ha sido enviado mediante el servicio de correo
> electrónico que ofrece la Federación de Radioaficionados de Cuba a sus
> miembros para respaldar el cumplimiento de los objetivos de la
> organización y su política informativa. La persona que envía este
> correo asume el compromiso de usar el servicio a tales fines y cumplir
> con las regulaciones establecidas.



More information about the erlang-questions mailing list