<div>
I’d use:
</div><div><br></div><div><div>Eshell V5.10.3 (abort with ^G)</div><div>1> D = <<33:6>>.</div><div><<33:6>></div><div>2> <<E:6/integer>> = D.</div><div><<33:6>></div><div>3> E.</div><div>33</div><div>4></div></div>
<div><div><br></div><div>-- </div><div>Steve Strong</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
<p style="color: #A0A0A8;">On Wednesday, 12 February 2014 at 07:27, Mike Oxford wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr">D = <<33:6>><div><<33:6>></div><div><br></div><div>I want to convert that 6 bit value (33) into a numeric value.</div><div><br></div><div>Why does <<0:2, D>> not work?</div>
<div>Why does <<0:2/bits, D:6/bits>> not work?</div><div>Why does <<D/integer>> not work? </div><div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div><div><br></div></div>
</div><div><div>_______________________________________________</div><div>erlang-questions mailing list</div><div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>