[erlang-questions] number->bytes and bytes->number
Gary Jefferson
garyjefferson123@REDACTED
Wed May 16 22:54:57 CEST 2007
Thanks, Matthias and Christian. Now, how do I go back
(from list/binary to number)? I'm such a noob. Where
is a good resource on reading about datatypes in
erlang?
Thanks,
Gary
--- Christian S <chsu79@REDACTED> wrote:
> The maximum unsigned integer you can store in 160
> bits (20 bytes) is 2^160-1.
>
> Try this in the shell:
>
> N = 2 bsl 160 - 1.
> <<N:160>>.
____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
More information about the erlang-questions
mailing list