> > What is the difference between >> and >>> ? from the help (in the REPL, at the prompt press the question mark and then enter >> or >>>)
>>(x, n) Right bit shift operator, x >> n. For n >= 0, the result is x shifted right by n bits, where n >= 0, filling with 0s if x >= 0, 1s if x < 0, preserving the sign of x. This is equivalent to fld(x, 2^n). For n < 0, this is equivalent to x << -n. julia> Int8(13) >> 2 3 julia> bits(Int8(13)) "00001101" julia> bits(Int8(3)) "00000011" julia> Int8(-14) >> 2 -4 >>>(x, n) Unsigned right bit shift operator, x >>> n. For n >= 0, the result is x shifted right by n bits, where n >= 0, filling with 0s. For n < 0, this is equivalent to x [<<](:func:<<) -n]. For Unsigned integer types, this is eqivalent to >>. For Signed integer types, this is equivalent to signed(unsigned(x) >> n). julia> Int8(-14) >>> 2 60 julia> bits(Int8(-14)) "11110010"