ô > PIdigits ô Calculate digits of PI ?ô Original by Valentin Albillo for HP and Sharp calculators (&ô Converted by BigEd for BBC BASIC 2: <è"How many digits? "N% FT%=‘ P!L%=10*N%/3+1:ÞA%L%,B%N%:C%=B% ZZ$="000000":T$="999999" dãI%=1¸L%:A%?I%=2:í n M%=0:P%=0 xãJ%=1¸N%:Q%=0:K%=2*L%+1 ‚ãI%=L%¸1ˆ-1 ŒK%=K%-2:X%=10*A%?I%+Q%*I% –Q%=X%K%:A%?I%=X%-Q%*K%  í ª Y%=Q%10:A%?1=Q%-10*Y%:Q%=Y% ´çQ%=9:M%=M%+1:åd\@ ¾)çQ%=10:$C%=Ã(P%+1)+ÀZ$,M%):P%=0:ådR@ È$C%=ÃP%+ÀT$,M%):P%=Q% ÒC%=C%+M%+1:M%=0 Üí æ $C%=ÃP% ð T%=‘-T% ú+ç N%<254:ñ$B% ‹ ã C%=0 ¸ N%:ï B%?C%:í:ñ  ñ T%;"cs" ÿ