That works, but I'm concerned with the part of the original post that says
" I want to change some of the bits and get a hex back"
I'm hoping that the OP's plan to "change bits" is not realized by changing
the string representation, but rather changing the bit representation
(using << and >>
This works:
julia> a = 0b1010
0xaf
julia> parse("0b"*bin(a))
0xaf
but maybe there are better ways.
On Fri, 2015-12-04 at 13:33, Martin Somers wrote:
> Just wondering binary to hex
> a = 0b1010
> bin(a) > "1010"
>
> this results in a string that can be