8 bit signed float possible?

Ericsson, Björn bjorn.ericsson@REDACTED
Fri Jun 16 16:43:55 CEST 2006


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060616/7f1ecd6f/attachment.htm>


More information about the erlang-questions mailing list