This is not "printing" but "returned value" Try `a[1]`, you get 0x0000000000000001 Try `print(a[1])`, you get 1
So overload `print` if ever needed. On Wednesday, September 16, 2015 at 11:34:33 PM UTC+2, [email protected] wrote: > > In Julia 0.4rc1, when I create a UInt, either as an individual value or > array, and then print it hex values are usually displayed instead of > decimals. I say 'usually' because the behavior changes a bit between REPL > and > > For instance: > > julia> a = UInt[1 2 3 4] > 1x4 Array{UInt64,2}: > 0x0000000000000001 0x0000000000000002 … 0x0000000000000004 > > This annoys me because 98% of the time I want the decimal representation. > Decimal is shown for Int, so why is hex the default for UInt? Is it a bug? >
