On Wednesday, December 2, 2015 at 8:45:40 AM UTC-5, Martin Somers wrote:
>
> in julia I get 
>
> (0xaaaaaaaaabcdef1234>> 32) & 0xFFFFFFFF  >> 0x00000000aaaaaaaa
>
> how can I remove the leading zeros for formating purposes
>

 You can use @printf for C-like printf formatting strings.

Or you can do UInt32((0xaaaaaaaaabcdef1234>>32) & 0xFFFFFFFF), which 
actually strips off the leading zero bytes to give you a 32-bit object. 
 Better yet, do (0xaaaaaaaaabcdef1234>>32) % UInt32 to just pull out the 
last four bytes without a bitmask.

Reply via email to