spreadsheet by idealmachine

with(Math){A=[];for(W=0;L=readline();W=max(W,L.length))A.push(L=L.split(T="\x09"));for(J=3;J--;)for(Y=-1;L="",A[++Y];J||print(L.slice(1)))for(X=0;X<W;X++){try{if(/^=/(R=A[Y][X]))A[Y][X]=R=eval(R.slice(1).toLowerCase());eval("abcdefghij"[X]+(Y+1)+"="+R)}catch(E){}L+=T+(round(R*100)/100||R)}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page