[erlang-questions] OTP float error on ARM

WS Dao <>
Thu Oct 16 09:04:48 CEST 2008


# ./erl
Eshell V5.6.4  (abort with ^G)
1> <<1.0:64/float>>.
<<0,0,0,0,63,240,0,0>>
2> <<1.0:64/native-float>>.
<<0,0,240,63,0,0,0,0>>


2008/10/16 Bob Ippolito <>

> On Wed, Oct 15, 2008 at 11:28 PM, Bjorn Gustavsson
> <> wrote:
> >  Thu, Oct 16, 2008 at 7:40 AM, Bob Ippolito <> wrote:
> >>
> >> Well, the float type in Erlang binaries by itself is big endian, not
> >> native endian. This is a bug in Erlang.
> >
> > This is not a bug. The default for numeric types is big endian. If you
> want
> > native endian, you must say so:
> >
> > <<F/native-float>>
>
> No, this is a bug. <<F/float>> on his platform is not returning big endian.
>
> -bob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081016/fd6ebcf1/attachment.html>


More information about the erlang-questions mailing list