@bbcmicrobot Nice. 3.2ish, that's not a bad estimate for pi. i can live with that :)
#bbcmicrobot 馃殌
REM @sil
DIM M 1024
FOR L=13TO17:?L=?-444: NEXT
FORL=M TOM+1023 STEP4:!L=RND:N.
C%=1:A=0
REPEAT
O=FNround(C%)
T=A*C%
C%=-NOTC%
A=(T+O)/C%
PRINT"Pi after "; C%; " rounds is "; A*4
UNTILC%>10000
END
DEFFNround(X%)
F%=0:H%=0:T%=0
REPEAT
R%=((M?((X%/8)MOD1023))/2^(X%MOD8))AND1
IFR%=1H%=-NOTH%ELSET%=-NOTT%
F%=-NOTF%:X%=-NOTX%
UNTILH%>T%
P.
=H%/F%