say I have an array
x=[0,0,2,3,4]
and a code
for n=1 if (10^n)*p<q n=n+1; elseif (10^n)*p>q break endend
is there a way to add an extra 0 to the start of x if my n value goes up. for example. If n is one x=[0,0,2,3,4] and if n is 2 x=[0,0,0,2,3,4] and if n=3 x=[0,0,0,0,2,3,4] and so on. Thanks for the help.
Best Answer