Non-decimal radices/Convert: Difference between revisions
Content added Content deleted
m (fixed line width) |
(→{{header|PARI/GP}}: Loop was going wrong direction.) |
||
Line 1,682: | Line 1,682: | ||
my(t=0); |
my(t=0); |
||
s=Vecsmall(s); |
s=Vecsmall(s); |
||
for(i=1,#s,1, |
|||
t=b*t+s[i]-if(s[i]<58,48,87) |
t=b*t+s[i]-if(s[i]<58,48,87) |
||
); |
); |