Le dimanche 06 décembre 2015 à 01:03 -0800, 'Greg Plowman' via julia -users a écrit : > What about using integer division with div(), and colon operator to > construct range? > > julia> N = 2^3-1 > 7 > > julia> imid = div(N+1,2) > 4 > > julia> imid-2 : imid+2 > 2:6 Yes, that's the best solution here. Also, you can replace div() with the ÷ operator (written using "\div" then hitting Tab at the REPL).
Regards