8 bit signed float possible?

Bjorn Gustavsson <>
Fri Jun 16 17:06:46 CEST 2006


Only 32 and 64 bits are supported.

/Bjorn

Ericsson, Björn <> writes:

> Hi!
>  
> I'm trying to construct an eight bit signed float in binary format:
>  
> Float = 3.14.
> Bin = <<Float:8/signed-float>>.
>  
> This only give badarg error. Is 8 bits too small for a float? Manual says default is 64 bits, but I cant find info on minimum.
>  
> Any clues?
>  
> /BE
> 
> 
> 
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list