Ah, thanks.
And another thing, why does it have to print the numbers in hexa? Don't we
all understand better the decimal system?
julia> a = Uint8[1, 255]
2-element Array{Uint8,1}:
0x01
0xff
julia> a[2]
0xff
segunda-feira, 16 de Março de 2015 às 22:55:05 UTC, Johan Sigfrids escreveu:
>
> You can add a type in front of the brackets:
>
> UInt8[1, 255]
>
> On Tuesday, March 17, 2015 at 12:37:01 AM UTC+2, J Luis wrote:
>>
>>
>>
>> julia> uint8([1,255])
>> WARNING: uint8(x::AbstractArray) is deprecated, use round(UInt8,x)
>> instead.
>>
>>
>> Besides not really understanding why the deprecation (older way is
>> clearer clear to me), is there a way to do this in a way that pleases both
>> 0.3 and 0.4 versions?
>> I mean, no annoying deprecation warning but one that works for 0.3 too
>> (the round(UInt8,x) doesn't).
>>
>> But even better, is there a way to create the array directly in Uint8
>> like we can do with "zeros(Uint8, 2,3)" instead of rounding a Int64
>> temporary copy?
>>
>